Ejemplo n.º 1
0
 public function __construct(array $values = [])
 {
     parent::__construct();
     $this->updated = new DateTime();
     $this->applications = new ArrayCollection();
     $this->fromArray($values);
 }
Ejemplo n.º 2
0
 public function __construct(array $values = [])
 {
     parent::__construct();
     $this->status = StaticPageStatus::DRAFT;
     $this->commentMode = CommentMode::RESTRICTED;
     $this->fromArray($values);
 }
Ejemplo n.º 3
0
 public function __construct(array $values = [])
 {
     parent::__construct();
     $this->updated = new DateTime();
     $this->note = "";
     $this->fromArray($values);
 }
Ejemplo n.º 4
0
 public function __construct(array $values = [])
 {
     parent::__construct();
     $this->activity = false;
     $this->staticPages = new ArrayCollection();
     $this->fromArray($values);
 }
Ejemplo n.º 5
0
 public function __construct(array $values = [])
 {
     parent::__construct();
     $this->status = WallPostStatus::DRAFT;
     $this->commentMode = CommentMode::ALLOWED;
     $this->fromArray($values);
 }
Ejemplo n.º 6
0
 public function __construct(array $values = [])
 {
     parent::__construct();
     $this->added = new DateTime();
     $this->parents = new ArrayCollection();
     $this->children = new ArrayCollection();
     $this->fromArray($values);
 }
Ejemplo n.º 7
0
 public function __construct(array $values = [])
 {
     parent::__construct();
     $this->created = new DateTime();
     $this->status = ArticleStatus::DRAFT;
     $this->commentMode = CommentMode::ALLOWED;
     $this->highlight = false;
     $this->counter = 0;
     $this->fromArray($values);
 }
Ejemplo n.º 8
0
 public function __construct(array $values = [])
 {
     parent::__construct();
     $this->threads = new ArrayCollection();
     $this->fromArray($values);
 }
Ejemplo n.º 9
0
 public function __construct(array $values = [])
 {
     parent::__construct();
     $this->created = new DateTime();
     $this->commentMode = CommentMode::ALLOWED;
     $this->active = false;
     $this->passwordChangeRequired = true;
     $this->positions = new ArrayCollection();
     $this->fromArray($values);
 }
Ejemplo n.º 10
0
 public function __construct(array $values = [])
 {
     parent::__construct();
     $this->status = WebProfileStatus::BAD;
     $this->fromArray($values);
 }
Ejemplo n.º 11
0
 public function __construct(array $values = [])
 {
     parent::__construct();
     $this->sent = new DateTime();
     $this->fromArray($values);
 }
Ejemplo n.º 12
0
 public function __construct()
 {
     parent::__construct();
     $this->identifierInit();
 }
 public function __construct()
 {
     parent::__construct();
     $this->logTime = new \DateTime();
 }
Ejemplo n.º 14
0
 public function __construct(array $values = [])
 {
     parent::__construct();
     $this->commentMode = CommentMode::ALLOWED;
     $this->fromArray($values);
 }
Ejemplo n.º 15
0
 public function __construct(array $values = [])
 {
     parent::__construct();
     $this->publishContact = false;
     $this->fromArray($values);
 }
Ejemplo n.º 16
0
 public function __construct(array $values = [])
 {
     parent::__construct();
     $this->status = PaymentStatus::NOT_YET;
     $this->fromArray($values);
 }
Ejemplo n.º 17
0
 private function referrerTypeHandle(BaseEntity $t)
 {
     try {
         $r = $this->getMixId($t->getReferrer());
         if ($r !== null) {
             $ref = $this->userService->getUser($r, false);
             $t->setReferrer($ref);
         }
     } catch (\Exception $ex) {
         $this->logError($ex->getMessage());
         throw new Exceptions\DataErrorException($ex->getMessage(), $ex->getCode(), $ex->getPrevious());
     }
     return $t;
 }
Ejemplo n.º 18
0
 private function authorTypeHandle(BaseEntity $e)
 {
     if ($e === null) {
         throw new Exceptions\NullPointerException("Argument Event cannot be null");
     }
     try {
         $editor = null;
         if ($this->getUserService() !== null) {
             $id = $this->getMixId($e->getAuthor());
             if ($id !== null) {
                 $editor = $this->getUserService()->getUser($id, false);
             }
         }
         $e->setAuthor($editor);
     } catch (\Exception $ex) {
         $this->logError($ex->getMessage());
         throw new Exceptions\DataErrorException($ex->getMessage(), $ex->getCode(), $ex->getPrevious());
     }
 }
Ejemplo n.º 19
0
 public function __construct(array $values = [])
 {
     parent::__construct();
     $this->eventType = EventType::TRAINING;
     $this->visibility = EventVisibility::GROUP;
     $this->commentMode = CommentMode::ALLOWED;
     $this->updated = new DateTime();
     //$this->groups = new ArrayCollection();
     $this->fromArray($values);
 }
Ejemplo n.º 20
0
 public function __construct(array $data)
 {
     parent::__construct();
     $this->fromArray($data);
 }