$data

Discussion in 'Developers' Forum' started by jjim50, Sep 12, 2010.

  1. jjim50

    jjim50 New Member

    Hi all, I'm just starting out developing for ispconfig and browsing through the source code I keep seeing $data being passed around. Looking for where $data is defined and populated, all I could find is it's declaration in system.inc.php and what seems to it being populated in tpl.inc.php with I really don't know what!

    What I want to know is what data does $data hold and where it gets it from.
    Thanks in advance
    Jim
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    $data is the array which is used in the server event functions and it is populated in server/lib/modules.inc.php. It is a array structure which contains two sub hashes 'old' and 'new', one with the state of a given record before the update and one with the state after the update.
     

Share This Page