Exemple #1
0
 /**
  * Reload this object's data based on a given key
  *
  * @param integer primary key
  */
 public function _load($key)
 {
     if (!isset(self::$roleTable)) {
         self::$roleTable = QFrame_Db_Table::getTable('role');
     }
     $data = self::$roleTable->find($key)->current()->toArray();
     $this->setAttributes($data, false);
     $this->acl = unserialize($data['ACLstring']);
 }