Exemple #1
0
 public function __construct($initialData = array())
 {
     if (empty($initialData)) {
         $initialData['dateCreated'] = date('Y-m-d H:i:s');
     }
     parent::__construct($initialData);
 }
Exemple #2
0
 public function __construct($data = array())
 {
     if (is_scalar($data)) {
         $data = array('id' => $data);
     }
     parent::__construct($data);
 }
Exemple #3
0
 public function __construct($data = array(), $sitemapInfo = array())
 {
     parent::__construct($data);
     if (!empty($sitemapInfo)) {
         $this->sitemapInfo = $sitemapInfo;
     }
 }
Exemple #4
0
 public function __construct($initialData, JobRepository $repository)
 {
     $this->repository = $repository;
     if (empty($initialData)) {
         $initialData['dateCreated'] = date('Y-m-d H:i:s');
     }
     parent::__construct($initialData);
 }
Exemple #5
0
 public function __construct(array $initialData, ConfigurationRepository $configurationRepository)
 {
     $this->configurationRepository = $configurationRepository;
     parent::__construct($initialData);
 }
 public function __construct(array $initialData, $columnName, $columnFieldInfo)
 {
     $this->columnName = $columnName;
     $this->columnFieldInfo = $columnFieldInfo;
     parent::__construct($initialData);
 }
Exemple #7
0
 public function __construct($documentData = array())
 {
     parent::__construct($documentData);
     $this->items = new ItemList();
 }