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;
 }
Exemple #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)];
     }
 }
Exemple #3
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
 }