示例#1
0
 public function setParent(\PassVault\PassBundle\Entity\Node $parent = null)
 {
     if (is_null($this->getParent())) {
         return parent::setParent($parent);
     }
     $password = $this->getPassword();
     parent::setParent($parent);
     $this->setPassword($password);
     return $this;
 }
示例#2
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->keyFile = md5(rand() . microtime());
     $characters = 'abcdef0123456789';
     $this->hash = '';
     for ($i = 0; $i < 60; $i++) {
         $this->hash .= $characters[rand(0, strlen($characters) - 1)];
     }
 }
示例#3
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
 }