Пример #1
0
 public function __construct($id = null)
 {
     if (null === $id) {
         $this->id = Session::getValue('user_uuid');
     } else {
         $this->id = $id;
     }
     $this->getProfile();
     self::$instance = $this;
     return $this;
 }
Пример #2
0
 public function __construct($id = null)
 {
     if (null === $id) {
         $this->id = Session::getValue('user_uuid');
     } else {
         $this->id = $id;
     }
     $this->workflows = new Workflows(array('owner' => $this, 'owner_type' => 'user'));
     $this->getProfile();
     self::$instance = $this;
     return $this;
 }