本文整理匯總了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);
}