示例#1
0
 function __construct($id)
 {
     parent::__construct($id);
     Base::registerMetadata('GroupType');
     Base::registerMetadata('DisplayMembers');
     Base::registerMetadata('Image');
 }
 /**
  * Pass the contruction call the parent and set up the name-alias relationship
  * @param integer $id The id of the object
  * @param string $alias The alias and name of the menusection
  * @return void
  */
 function __construct($id = false)
 {
     parent::__construct($id);
     $this->loadAliases();
     $this->Name = $this->alias;
     Base::registerMetadata('template', 'inherit');
 }
示例#3
0
 function __construct($id, $language = false)
 {
     parent::__construct($id);
     global $USER;
     $this->getMenuPos();
     parent::registerMetadata('description', '');
     parent::registerMetadata('icon', '');
 }
示例#4
0
 function __construct($page, $lang = false)
 {
     if (is_object($page)) {
         $page = $page->ID;
     }
     $this->page = $page;
     if ($page == 'new') {
         return;
     }
     parent::__construct($page);
     global $DB;
     global $USER;
     if (!$lang) {
         $this->loadedLanguage = $USER->settings['language'];
     } else {
         $this->loadedLanguage = $lang;
     }
     Base::registerMetadata(array('Limit', 'Form_Title', 'Public_Form'));
 }
示例#5
0
 /**
  * Initialization of the user class
  * @param integer $id Id of the user that's beeing loaded
  * @param string $alias User's alias
  * @return void
  */
 function __construct($id = false)
 {
     global $DB, $CONFIG, $Controller, $ID;
     $cur = false;
     if ($id == 'current') {
         $id = $this->currentUserID();
         $cur = true;
         $DB->users->{(string) $id} = array('#!last_active' => 'NOW()');
     }
     parent::__construct($id);
     Base::registerMetadata('AcceptedTerms');
     $this->loadUser($id);
     if ($cur && $id != NOBODY && $_REQUEST['id'] != 'Terms') {
         if (!$this->isActive()) {
             $_REQUEST->setType('return', 'numeric');
             redirect(url(array('id' => 'Terms', 'return' => $ID)));
         }
     }
 }
示例#6
0
 function __construct($id = false)
 {
     parent::__construct($id);
     Base::registerMetadata(array('Image', 'contact', 'attendance', 'attending_groups'));
 }
示例#7
0
 /**
  * Constructor. Load the properties of the link
  * @param integer $id The id from the controller
  * @return void
  */
 function __construct($id, $language = false)
 {
     parent::__construct($id, $language);
     Base::registerMetadata('link');
 }
示例#8
0
 /**
  * Create a company
  * @param number $id Id of the company
  * @return void
  */
 function __construct($id = false)
 {
     parent::__construct($id);
     Base::registerMetadata(array('Name', 'logo', 'URL', 'weight', 'type', 'redirect'));
 }