Example #1
0
 /**
  * Class constructor.
  *
  * @access   public
  * @since    1.0.0-alpha
  * @version  1.0.0-alpha
  */
 public function __construct()
 {
     parent::__construct();
     $this->add_date = new \DateTime();
     $this->status = static::FILE_STATUS_TEMPORARY;
 }
Example #2
0
 /**
  * Constructor
  *
  * @access     public
  * @since      1.0.0
  * @version    3.1.1, 2014-09-28
  */
 public function __construct()
 {
     parent::__construct();
     $this->registration_date = new \DateTime();
     $this->roles = new Doctrine\Common\Collections\ArrayCollection();
 }
Example #3
0
 /**
  * Constructor
  *
  * @access     public
  * @since      1.1.2-dev
  * @version    1.1.3-dev
  */
 public function __construct()
 {
     parent::__construct();
     $this->locales = new \Doctrine\Common\Collections\ArrayCollection();
     // get menu ID
     if (Router::getCurrentRouteName() === 'backend' && in_array(Router::getParam('action'), ['add', 'edit'])) {
         $menuID = (int) Router::getParam('id');
         $this->menu = DB::find('\\Model\\Menu', $menuID);
     }
 }
Example #4
0
 /**
  * Constructor.
  *
  * @access   public
  * @since    2013-12-23
  * @version  2015-01-08
  */
 public function __construct()
 {
     parent::__construct();
     $this->permissions = new Doctrine\Common\Collections\ArrayCollection();
     $this->users = new Doctrine\Common\Collections\ArrayCollection();
 }
Example #5
0
 /**
  * Constructor
  *
  * @access     public
  * @since      1.1.2-dev
  * @version    1.1.2-dev
  */
 public function __construct()
 {
     parent::__construct();
     $this->locales = new Doctrine\Common\Collections\ArrayCollection();
     $this->items = new Doctrine\Common\Collections\ArrayCollection();
 }
Example #6
0
 /**
  * Constructor.
  *
  * @access     public
  * @version    2013-10-04
  */
 public function __construct()
 {
     parent::__construct();
     $this->add_date = new \DateTime();
     $this->files = new Doctrine\Common\Collections\ArrayCollection();
     $this->image = new Doctrine\Common\Collections\ArrayCollection();
 }