コード例 #1
0
ファイル: Season.php プロジェクト: fuca/sportsclub
 public function __construct(array $values = [])
 {
     parent::__construct();
     $this->updated = new DateTime();
     $this->applications = new ArrayCollection();
     $this->fromArray($values);
 }
コード例 #2
0
ファイル: WallPost.php プロジェクト: fuca/sportsclub
 public function __construct(array $values = [])
 {
     parent::__construct();
     $this->status = WallPostStatus::DRAFT;
     $this->commentMode = CommentMode::ALLOWED;
     $this->fromArray($values);
 }
コード例 #3
0
ファイル: Partner.php プロジェクト: fuca/sportsclub
 public function __construct(array $values = [])
 {
     parent::__construct();
     $this->updated = new DateTime();
     $this->note = "";
     $this->fromArray($values);
 }
コード例 #4
0
ファイル: SportGroup.php プロジェクト: fuca/sportsclub
 public function __construct(array $values = [])
 {
     parent::__construct();
     $this->activity = false;
     $this->staticPages = new ArrayCollection();
     $this->fromArray($values);
 }
コード例 #5
0
ファイル: StaticPage.php プロジェクト: fuca/sportsclub
 public function __construct(array $values = [])
 {
     parent::__construct();
     $this->status = StaticPageStatus::DRAFT;
     $this->commentMode = CommentMode::RESTRICTED;
     $this->fromArray($values);
 }
コード例 #6
0
ファイル: Role.php プロジェクト: fuca/sportsclub
 public function __construct(array $values = [])
 {
     parent::__construct();
     $this->added = new DateTime();
     $this->parents = new ArrayCollection();
     $this->children = new ArrayCollection();
     $this->fromArray($values);
 }
コード例 #7
0
ファイル: Article.php プロジェクト: fuca/sportsclub
 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);
 }
コード例 #8
0
ファイル: User.php プロジェクト: fuca/sportsclub
 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);
 }
コード例 #9
0
ファイル: Forum.php プロジェクト: fuca/sportsclub
 public function __construct(array $values = [])
 {
     parent::__construct();
     $this->threads = new ArrayCollection();
     $this->fromArray($values);
 }
コード例 #10
0
ファイル: PrivateMessage.php プロジェクト: fuca/sportsclub
 public function __construct(array $values = [])
 {
     parent::__construct();
     $this->sent = new DateTime();
     $this->fromArray($values);
 }
コード例 #11
0
ファイル: WebProfile.php プロジェクト: fuca/sportsclub
 public function __construct(array $values = [])
 {
     parent::__construct();
     $this->status = WebProfileStatus::BAD;
     $this->fromArray($values);
 }
コード例 #12
0
ファイル: BaseEntity.php プロジェクト: JakubBarta/web-project
 public function __construct()
 {
     parent::__construct();
     $this->identifierInit();
 }
コード例 #13
0
 public function __construct()
 {
     parent::__construct();
     $this->logTime = new \DateTime();
 }
コード例 #14
0
ファイル: SeasonTax.php プロジェクト: fuca/sportsclub
 public function __construct(array $data)
 {
     parent::__construct();
     $this->fromArray($data);
 }
コード例 #15
0
ファイル: Event.php プロジェクト: fuca/sportsclub
 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);
 }
コード例 #16
0
ファイル: Payment.php プロジェクト: fuca/sportsclub
 public function __construct(array $values = [])
 {
     parent::__construct();
     $this->status = PaymentStatus::NOT_YET;
     $this->fromArray($values);
 }
コード例 #17
0
ファイル: ForumThread.php プロジェクト: fuca/sportsclub
 public function __construct(array $values = [])
 {
     parent::__construct();
     $this->commentMode = CommentMode::ALLOWED;
     $this->fromArray($values);
 }
コード例 #18
0
ファイル: Position.php プロジェクト: fuca/sportsclub
 public function __construct(array $values = [])
 {
     parent::__construct();
     $this->publishContact = false;
     $this->fromArray($values);
 }