当前位置: 首页>>代码示例>>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;未经允许,请勿转载。