Example #1
0
 public function initialize()
 {
     $this->setProperties(array("contractor" => (int) $this->modx->user->id));
     if (!$this->getProperty('contractor')) {
         return "Не был получен ID пользователя";
     }
     return parent::initialize();
 }
Example #2
0
 public function initialize()
 {
     $this->setDefaultProperties(array('json' => true));
     return parent::initialize();
 }