本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}