예제 #1
0
파일: Project.php 프로젝트: Tom-Byrne/gocdb
 /**
  * Create a new project
  * @param string $name The project's name
  */
 public function __construct($name)
 {
     parent::__construct();
     // Set cretion date
     $this->creationDate = new \DateTime("now");
     $this->setName($name);
     $this->ngis = new ArrayCollection();
 }
예제 #2
0
 public function __construct()
 {
     parent::__construct();
     // Set cretion date
     $this->creationDate = new \DateTime("now");
     $this->serviceGroupProperties = new ArrayCollection();
     $this->scopes = new ArrayCollection();
     $this->services = new ArrayCollection();
 }
예제 #3
0
파일: NGI.php 프로젝트: Tom-Byrne/gocdb
 public function __construct()
 {
     parent::__construct();
     // Set cretion date
     $this->creationDate = new \DateTime("now");
     $this->sites = new ArrayCollection();
     $this->projects = new ArrayCollection();
     $this->scopes = new ArrayCollection();
 }
예제 #4
0
파일: Site.php 프로젝트: Tom-Byrne/gocdb
 public function __construct()
 {
     parent::__construct();
     // Make sure all dates are treated as UTC!
     // Set cretion date
     $this->creationDate = new \DateTime("now");
     $this->services = new ArrayCollection();
     $this->siteProperties = new ArrayCollection();
     $this->scopes = new ArrayCollection();
     $this->users = new ArrayCollection();
     $this->certificationStatusLog = new ArrayCollection();
 }