Esempio n. 1
0
 /**
  * Constructor of the Mailing class
  *
  * @param int $mailingID Mailing Id
  * @param int $version Version
  */
 public function __construct($mailingID = 0, $version = 0)
 {
     $this->_uid =& sUserMgr()->getCurrentUserID();
     $this->_id = $mailingID;
     $this->initTables();
     $this->permissions = new Permissions($this->_table_permissions, $this);
     parent::__construct($this->_id, $version, $this->_table_object, $this->_table_tree, $this->permissions);
     $this->history = new History($this, $this->_id_history, $this->permissions);
     $this->tags = new Tags($this);
     $this->comments = new Comments($this);
     $this->properties = new Properties($this->_table_properties, $this->getPropertyId(), $this);
     $this->scheduler = new Scheduler($this->_table_scheduler, SCHEDULER_MAILING);
 }
Esempio n. 2
0
 /**
  * Constructor of the Cblock class
  *
  * @param int $cbId Cblock Id
  * @param int $version Version
  */
 public function __construct($cbId = 0, $version = 0)
 {
     $this->_uid =& sUserMgr()->getCurrentUserID();
     // object descriptor
     $this->_id = $cbId;
     $this->initTables();
     $this->permissions = new Permissions($this->_table_permissions, $this);
     parent::__construct($this->_id, $version, $this->_table_object, $this->_table_tree, $this->permissions);
     $this->history = new History($this, HISTORYTYPE_CO, $this->permissions);
     $this->tags = new Tags($this);
     $this->properties = new Properties($this->_table_properties, $this->getPropertyId(), $this);
     $this->scheduler = new Scheduler($this->_table_scheduler, SCHEDULER_CO);
     $this->control = new Entrymasks();
     $this->comments = new Comments($this);
 }
Esempio n. 3
0
 /**
  * Constructor of the File class
  *
  * @param int $fileId File Id
  * @param int $version Version
  */
 public function __construct($fileId = 0, $version = 0)
 {
     $this->_uid =& sUserMgr()->getCurrentUserID();
     $this->_id = $fileId;
     $this->initTables();
     $this->permissions = new Permissions($this->_table_permissions, $this);
     parent::__construct($this->_id, $version, $this->_table_object, $this->_table_tree, $this->permissions);
     $this->history = new History($this, HISTORYTYPE_FILE, $this->permissions);
     $this->tags = new Tags($this);
     $this->comments = new Comments($this);
     $this->properties = new Properties($this->_table_properties, $this->getPropertyId(), $this);
     $this->scheduler = new Scheduler($this->_table_scheduler, SCHEDULER_FILE);
     $this->views = new Views($this);
     $this->filetypes = new Filetypes();
 }
Esempio n. 4
0
 /**
  * Constructor of the Page class
  *
  * @param int $siteID Site Id
  * @param int $pageID Page Id
  * @param int $version Version
  */
 public function __construct($siteID = 1, $pageID = 0, $version = 0)
 {
     $this->_uid =& sUserMgr()->getCurrentUserID();
     if ($siteID < 1) {
         return false;
     }
     $this->_site = $siteID;
     $this->_id = $pageID;
     $this->initTables();
     $this->permissions = new Permissions($this->_table_permissions, $this);
     parent::__construct($this->_id, $version, $this->_table_object, $this->_table_tree, $this->permissions);
     $this->history = new History($this, $this->_id_history, $this->permissions, $this->_site);
     $this->tags = new Tags($this);
     $this->comments = new Comments($this);
     $this->properties = new Properties($this->_table_properties, $this->getPropertyId(), $this);
     $this->scheduler = new Scheduler($this->_table_scheduler, SCHEDULER_PAGE);
 }