當前位置: 首頁>>代碼示例>>PHP>>正文


PHP parent::_validateObject方法代碼示例

本文整理匯總了PHP中parent::_validateObject方法的典型用法代碼示例。如果您正苦於以下問題:PHP parent::_validateObject方法的具體用法?PHP parent::_validateObject怎麽用?PHP parent::_validateObject使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在parent的用法示例。


在下文中一共展示了parent::_validateObject方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: _validateObject

 public function _validateObject($dataObject, $requiredFields = null)
 {
     $parent = new parent();
     $parent->_validateObject($dataObject, $this->requiredFields);
     // run validation for change_type
     $this->validateChangeType($dataObject->attributes->change_type, $dataObject);
 }
開發者ID:opensrs,項目名稱:osrs-toolkit-php,代碼行數:7,代碼來源:BulkChange.php

示例2: _validateObject

 public function _validateObject($dataObject, $requiredFields = null)
 {
     if (!isset($dataObject->attributes->order_id) and !isset($dataObject->attributes->product_id)) {
         Exception::notDefined('order_id or product_id');
     }
     $parent = new parent();
     $parent->_validateObject($dataObject, $this->requiredFields);
 }
開發者ID:opensrs,項目名稱:osrs-toolkit-php,代碼行數:8,代碼來源:RequestOnDemandScan.php

示例3: _validateObject

 public function _validateObject($dataObject, $requiredFields = null)
 {
     if (empty($dataObject->cookie) && empty($dataObject->attributes->domain)) {
         Exception::notDefined('cookie and/or domain.');
     }
     $parent = new parent();
     $parent->_validateObject($dataObject, $this->requiredFields);
 }
開發者ID:opensrs,項目名稱:osrs-toolkit-php,代碼行數:8,代碼來源:ProvisioningModify.php

示例4: _validateObject

 public function _validateObject($dataObject, $requiredFields = null)
 {
     if ((!isset($dataObject->cookie) || $dataObject->cookie == '') && (!isset($dataObject->attributes->domain) || $dataObject->attributes->domain == '')) {
         Exception::notDefined('cookie or domain');
     }
     if (isset($dataObject->cookie) && $dataObject->cookie != '' && isset($dataObject->attributes->domain) && $dataObject->attributes->domain != '') {
         Exception::cannotSetOneCall('cookie and domain');
     }
     $parent = new parent();
     $parent->_validateObject($dataObject, $this->requiredFields);
 }
開發者ID:opensrs,項目名稱:osrs-toolkit-php,代碼行數:11,代碼來源:NameserverAdvancedUpdate.php

示例5: _validateObject

 public function _validateObject($dataObject, $requiredFields = null)
 {
     // make sure contact fields are all sent
     $this->checkContactFields($dataObject->attributes->contact_set);
     if (!isset($dataObject->attributes->nameserver_names) || $dataObject->attributes->nameserver_names == '') {
         throw new Exception('oSRS Error - The function requires at least one nameserver is provided.');
     }
     //Check there are the samenumber of Nameserver IP values are there are  Nameserver Name values
     if (isset($dataObject->attributes->nameserver_ips) && $dataObject->attributes->nameserver_ips != '') {
         if (count(explode(',', $dataObject->attributes->nameserver_ips)) != count(explode(',', $dataObject->attributes->nameserver_names))) {
             throw new Exception('oSRS Error - The function requires the same number of Nameserver IP addresses as Nameserver names if you are defining Nameserver IP addresses.');
         }
     }
     $parent = new parent();
     $parent->_validateObject($dataObject, $this->requiredFields);
 }
開發者ID:opensrs,項目名稱:osrs-toolkit-php,代碼行數:16,代碼來源:ProvisioningUpdateAllInfo.php


注:本文中的parent::_validateObject方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。