コード例 #1
0
 /**
  * Constructor method for VoiceMsgAction
  * @param  VoiceMsgActionSpec $action Action specification
  * @param  StorePrincipalSpec $storeprincipal Store principal specification
  * @return self
  */
 public function __construct(VoiceMsgActionSpec $action, StorePrincipalSpec $storeprincipal = null)
 {
     parent::__construct();
     if ($storeprincipal instanceof StorePrincipalSpec) {
         $this->setChild('storeprincipal', $storeprincipal);
     }
     $this->setChild('action', $action);
 }
コード例 #2
0
 /**
  * Constructor method for ModifyVoiceFeatures
  * @param  StorePrincipalSpec $storeprincipal
  * @param  ModifyVoiceFeaturesSpec $phone
  * @return self
  */
 public function __construct(StorePrincipalSpec $storeprincipal = null, ModifyVoiceFeaturesSpec $phone = null)
 {
     parent::__construct();
     if ($storeprincipal instanceof StorePrincipalSpec) {
         $this->setChild('storeprincipal', $storeprincipal);
     }
     if ($phone instanceof ModifyVoiceFeaturesSpec) {
         $this->setChild('phone', $phone);
     }
 }
コード例 #3
0
 /**
  * Constructor method for ModifyVoiceMailPrefs
  * @param  StorePrincipalSpec $storeprincipal
  * @param  PhoneInfo $phone
  * @return self
  */
 public function __construct(StorePrincipalSpec $storeprincipal = null, PhoneInfo $phone = null)
 {
     parent::__construct();
     if ($storeprincipal instanceof StorePrincipalSpec) {
         $this->setChild('storeprincipal', $storeprincipal);
     }
     if ($phone instanceof PhoneInfo) {
         $this->setChild('phone', $phone);
     }
 }
コード例 #4
0
 /**
  * Constructor method for UploadVoiceMail
  * @param  StorePrincipalSpec $storeprincipal Store principal specification
  * @param  VoiceMsgUploadSpec $vm Specification of voice message to upload
  * @return self
  */
 public function __construct(StorePrincipalSpec $storeprincipal = null, VoiceMsgUploadSpec $voiceMsg = null)
 {
     parent::__construct();
     if ($storeprincipal instanceof StorePrincipalSpec) {
         $this->setChild('storeprincipal', $storeprincipal);
     }
     if ($voiceMsg instanceof VoiceMsgUploadSpec) {
         $this->setChild('vm', $voiceMsg);
     }
 }
コード例 #5
0
 /**
  * Constructor method for GetVoiceInfo
  * @param  array $phones
  * @return self
  */
 public function __construct(array $phones = array())
 {
     parent::__construct();
     $this->setPhones($phones);
     $this->on('before', function (Base $sender) {
         if ($sender->getPhones()->count()) {
             $sender->setChild('phone', $sender->getPhones()->all());
         }
     });
 }
コード例 #6
0
 /**
  * Constructor method for GetVoiceFolder
  * @param  StorePrincipalSpec $storeprincipal Store principal specification
  * @param  array $phones
  * @return self
  */
 public function __construct(StorePrincipalSpec $storeprincipal = null, array $phones = array())
 {
     parent::__construct();
     if ($storeprincipal instanceof StorePrincipalSpec) {
         $this->setChild('storeprincipal', $storeprincipal);
     }
     $this->setPhones($phones);
     $this->on('before', function (Base $sender) {
         if ($sender->getPhones()->count()) {
             $sender->setChild('phone', $sender->getPhones()->all());
         }
     });
 }
コード例 #7
0
ファイル: SearchVoice.php プロジェクト: nucleus-be/zimbra-api
 /**
  * Constructor method for SearchVoice
  * @param  string $query
  * @param  StorePrincipalSpec $storeprincipal
  * @param  int $limit
  * @param  int $offset
  * @param  string $types
  * @param  VoiceSortBy $sortBy
  * @return self
  */
 public function __construct($query, StorePrincipalSpec $storeprincipal = null, $limit = null, $offset = null, $types = null, VoiceSortBy $sortBy = null)
 {
     parent::__construct();
     $this->setProperty('query', trim($query));
     if ($storeprincipal instanceof StorePrincipalSpec) {
         $this->setChild('storeprincipal', $storeprincipal);
     }
     if (null !== $limit) {
         $this->setProperty('limit', (int) $limit);
     }
     if (null !== $offset) {
         $this->setProperty('offset', (int) $offset);
     }
     if (null !== $types) {
         $this->setProperty('types', trim($types));
     }
     if ($sortBy instanceof VoiceSortBy) {
         $this->setProperty('sortBy', $sortBy);
     }
 }