Ejemplo n.º 1
0
 public function validateRequired($only = [])
 {
     parent::validateRequired($only);
     if (!is_array($this->getAttribute('container'))) {
         throw new AdldapException('Container attribute must be an array.');
     }
     return true;
 }
Ejemplo n.º 2
0
 /**
  * Validates the required attributes. This will throw
  * an AdldapException on failure.
  *
  * @return bool
  *
  * @throws AdldapException
  */
 public function validateRequired()
 {
     parent::validateRequired();
     if (!is_array($this->getAttribute('container'))) {
         $message = 'Container attribute must be an array';
         throw new AdldapException($message);
     }
     return true;
 }
Ejemplo n.º 3
0
 public function validateRequired($only = [])
 {
     parent::validateRequired();
     if (!is_array($this->getAttribute('storageGroup'))) {
         $message = 'Storage Group attribute must be an array';
         throw new AdldapException($message);
     }
     return true;
 }