예제 #1
0
 /**
  * Skupina uživatelů
  *
  * @param string|id $id ID nebo jméno skupiny
  */
 public function __construct($id = null)
 {
     parent::__construct();
     unset($this->useKeywords['generate']);
     unset($this->keywordsInfo['generate']);
     if (is_int($id)) {
         $this->loadFromSQL($id);
     } else {
         if (strlen($id)) {
             $this->setmyKeyColumn($this->nameColumn);
             $this->loadFromSQL($id);
             $this->restoreObjectIdentity();
         }
     }
     $id = $this->getMyKey();
     if ($id) {
         $this->loadMembers();
     }
 }
예제 #2
0
 /**
  * Předloha sledovaných služeb
  *
  * @param int|string $itemID
  */
 public function __construct($itemID = null)
 {
     parent::__construct($itemID);
     unset($this->useKeywords['generate']);
     unset($this->keywordsInfo['generate']);
 }