本文整理汇总了PHP中Status::getValidationFailures方法的典型用法代码示例。如果您正苦于以下问题:PHP Status::getValidationFailures方法的具体用法?PHP Status::getValidationFailures怎么用?PHP Status::getValidationFailures使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Status
的用法示例。
在下文中一共展示了Status::getValidationFailures方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: doValidate
/**
* This function performs the validation work for complex object models.
*
* In addition to checking the current object, all related objects will
* also be validated. If all pass then <code>true</code> is returned; otherwise
* an aggreagated array of ValidationFailed objects will be returned.
*
* @param array $columns Array of column names to validate.
* @return mixed <code>true</code> if all validations pass; array of <code>ValidationFailed</code> objets otherwise.
*/
protected function doValidate($columns = null)
{
if (!$this->alreadyInValidation) {
$this->alreadyInValidation = true;
$retval = null;
$failureMap = array();
// We call the validate method on the following object(s) if they
// were passed to this object by their coresponding set
// method. This object relates to these object(s) by a
// foreign key reference.
if ($this->aStatus !== null) {
if (!$this->aStatus->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aStatus->getValidationFailures());
}
}
if (($retval = ProjectPeer::doValidate($this, $columns)) !== true) {
$failureMap = array_merge($failureMap, $retval);
}
if ($this->collJobs !== null) {
foreach ($this->collJobs as $referrerFK) {
if (!$referrerFK->validate($columns)) {
$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
}
}
}
$this->alreadyInValidation = false;
}
return !empty($failureMap) ? $failureMap : true;
}
示例2: doValidate
/**
* This function performs the validation work for complex object models.
*
* In addition to checking the current object, all related objects will
* also be validated. If all pass then <code>true</code> is returned; otherwise
* an aggreagated array of ValidationFailed objects will be returned.
*
* @param array $columns Array of column names to validate.
* @return mixed <code>true</code> if all validations pass; array of <code>ValidationFailed</code> objets otherwise.
*/
protected function doValidate($columns = null)
{
if (!$this->alreadyInValidation) {
$this->alreadyInValidation = true;
$retval = null;
$failureMap = array();
// We call the validate method on the following object(s) if they
// were passed to this object by their coresponding set
// method. This object relates to these object(s) by a
// foreign key reference.
if ($this->aUser !== null) {
if (!$this->aUser->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aUser->getValidationFailures());
}
}
if ($this->aSchemaPropertyElement !== null) {
if (!$this->aSchemaPropertyElement->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aSchemaPropertyElement->getValidationFailures());
}
}
if ($this->aSchemaPropertyRelatedBySchemaPropertyId !== null) {
if (!$this->aSchemaPropertyRelatedBySchemaPropertyId->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aSchemaPropertyRelatedBySchemaPropertyId->getValidationFailures());
}
}
if ($this->aSchema !== null) {
if (!$this->aSchema->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aSchema->getValidationFailures());
}
}
if ($this->aProfileProperty !== null) {
if (!$this->aProfileProperty->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aProfileProperty->getValidationFailures());
}
}
if ($this->aSchemaPropertyRelatedByRelatedSchemaPropertyId !== null) {
if (!$this->aSchemaPropertyRelatedByRelatedSchemaPropertyId->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aSchemaPropertyRelatedByRelatedSchemaPropertyId->getValidationFailures());
}
}
if ($this->aStatus !== null) {
if (!$this->aStatus->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aStatus->getValidationFailures());
}
}
if ($this->aFileImportHistory !== null) {
if (!$this->aFileImportHistory->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aFileImportHistory->getValidationFailures());
}
}
if (($retval = SchemaPropertyElementHistoryPeer::doValidate($this, $columns)) !== true) {
$failureMap = array_merge($failureMap, $retval);
}
$this->alreadyInValidation = false;
}
return !empty($failureMap) ? $failureMap : true;
}
示例3: doValidate
/**
* This function performs the validation work for complex object models.
*
* In addition to checking the current object, all related objects will
* also be validated. If all pass then <code>true</code> is returned; otherwise
* an aggreagated array of ValidationFailed objects will be returned.
*
* @param array $columns Array of column names to validate.
* @return mixed <code>true</code> if all validations pass; array of <code>ValidationFailed</code> objets otherwise.
*/
protected function doValidate($columns = null)
{
if (!$this->alreadyInValidation) {
$this->alreadyInValidation = true;
$retval = null;
$failureMap = array();
// We call the validate method on the following object(s) if they
// were passed to this object by their coresponding set
// method. This object relates to these object(s) by a
// foreign key reference.
if ($this->aUserRelatedByCreatedUserId !== null) {
if (!$this->aUserRelatedByCreatedUserId->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aUserRelatedByCreatedUserId->getValidationFailures());
}
}
if ($this->aUserRelatedByUpdatedUserId !== null) {
if (!$this->aUserRelatedByUpdatedUserId->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aUserRelatedByUpdatedUserId->getValidationFailures());
}
}
if ($this->aConceptRelatedByConceptId !== null) {
if (!$this->aConceptRelatedByConceptId->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aConceptRelatedByConceptId->getValidationFailures());
}
}
if ($this->aProfilePropertyRelatedBySkosPropertyId !== null) {
if (!$this->aProfilePropertyRelatedBySkosPropertyId->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aProfilePropertyRelatedBySkosPropertyId->getValidationFailures());
}
}
if ($this->aVocabulary !== null) {
if (!$this->aVocabulary->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aVocabulary->getValidationFailures());
}
}
if ($this->aConceptRelatedByRelatedConceptId !== null) {
if (!$this->aConceptRelatedByRelatedConceptId->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aConceptRelatedByRelatedConceptId->getValidationFailures());
}
}
if ($this->aStatus !== null) {
if (!$this->aStatus->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aStatus->getValidationFailures());
}
}
if ($this->aProfilePropertyRelatedByProfilePropertyId !== null) {
if (!$this->aProfilePropertyRelatedByProfilePropertyId->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aProfilePropertyRelatedByProfilePropertyId->getValidationFailures());
}
}
if (($retval = ConceptPropertyPeer::doValidate($this, $columns)) !== true) {
$failureMap = array_merge($failureMap, $retval);
}
if ($this->collConcepts !== null) {
foreach ($this->collConcepts as $referrerFK) {
if (!$referrerFK->validate($columns)) {
$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
}
}
}
if ($this->collConceptPropertyHistorys !== null) {
foreach ($this->collConceptPropertyHistorys as $referrerFK) {
if (!$referrerFK->validate($columns)) {
$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
}
}
}
if ($this->collDiscusss !== null) {
foreach ($this->collDiscusss as $referrerFK) {
if (!$referrerFK->validate($columns)) {
$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
}
}
}
$this->alreadyInValidation = false;
}
return !empty($failureMap) ? $failureMap : true;
}
示例4: doValidate
/**
* This function performs the validation work for complex object models.
*
* In addition to checking the current object, all related objects will
* also be validated. If all pass then <code>true</code> is returned; otherwise
* an aggreagated array of ValidationFailed objects will be returned.
*
* @param array $columns Array of column names to validate.
* @return mixed <code>true</code> if all validations pass; array of <code>ValidationFailed</code> objets otherwise.
*/
protected function doValidate($columns = null)
{
if (!$this->alreadyInValidation) {
$this->alreadyInValidation = true;
$retval = null;
$failureMap = array();
// We call the validate method on the following object(s) if they
// were passed to this object by their coresponding set
// method. This object relates to these object(s) by a
// foreign key reference.
if ($this->aAgent !== null) {
if (!$this->aAgent->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aAgent->getValidationFailures());
}
}
if ($this->aUserRelatedByCreatedUserId !== null) {
if (!$this->aUserRelatedByCreatedUserId->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aUserRelatedByCreatedUserId->getValidationFailures());
}
}
if ($this->aUserRelatedByUpdatedUserId !== null) {
if (!$this->aUserRelatedByUpdatedUserId->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aUserRelatedByUpdatedUserId->getValidationFailures());
}
}
if ($this->aStatus !== null) {
if (!$this->aStatus->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aStatus->getValidationFailures());
}
}
if ($this->aProfile !== null) {
if (!$this->aProfile->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aProfile->getValidationFailures());
}
}
if (($retval = SchemaPeer::doValidate($this, $columns)) !== true) {
$failureMap = array_merge($failureMap, $retval);
}
if ($this->collDiscusss !== null) {
foreach ($this->collDiscusss as $referrerFK) {
if (!$referrerFK->validate($columns)) {
$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
}
}
}
if ($this->collFileImportHistorys !== null) {
foreach ($this->collFileImportHistorys as $referrerFK) {
if (!$referrerFK->validate($columns)) {
$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
}
}
}
if ($this->collRdfNamespaces !== null) {
foreach ($this->collRdfNamespaces as $referrerFK) {
if (!$referrerFK->validate($columns)) {
$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
}
}
}
if ($this->collSchemaPropertys !== null) {
foreach ($this->collSchemaPropertys as $referrerFK) {
if (!$referrerFK->validate($columns)) {
$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
}
}
}
if ($this->collSchemaPropertyElementHistorys !== null) {
foreach ($this->collSchemaPropertyElementHistorys as $referrerFK) {
if (!$referrerFK->validate($columns)) {
$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
}
}
}
if ($this->collSchemaHasUsers !== null) {
foreach ($this->collSchemaHasUsers as $referrerFK) {
if (!$referrerFK->validate($columns)) {
$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
}
}
}
if ($this->collSchemaHasVersions !== null) {
foreach ($this->collSchemaHasVersions as $referrerFK) {
if (!$referrerFK->validate($columns)) {
$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
}
}
}
$this->alreadyInValidation = false;
}
return !empty($failureMap) ? $failureMap : true;
//.........这里部分代码省略.........
示例5: doValidate
/**
* This function performs the validation work for complex object models.
*
* In addition to checking the current object, all related objects will
* also be validated. If all pass then <code>true</code> is returned; otherwise
* an aggreagated array of ValidationFailed objects will be returned.
*
* @param array $columns Array of column names to validate.
* @return mixed <code>true</code> if all validations pass; array of <code>ValidationFailed</code> objets otherwise.
*/
protected function doValidate($columns = null)
{
if (!$this->alreadyInValidation) {
$this->alreadyInValidation = true;
$retval = null;
$failureMap = array();
// We call the validate method on the following object(s) if they
// were passed to this object by their coresponding set
// method. This object relates to these object(s) by a
// foreign key reference.
if ($this->aUserRelatedByCreatedUserId !== null) {
if (!$this->aUserRelatedByCreatedUserId->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aUserRelatedByCreatedUserId->getValidationFailures());
}
}
if ($this->aUserRelatedByUpdatedUserId !== null) {
if (!$this->aUserRelatedByUpdatedUserId->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aUserRelatedByUpdatedUserId->getValidationFailures());
}
}
if ($this->aVocabulary !== null) {
if (!$this->aVocabulary->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aVocabulary->getValidationFailures());
}
}
if ($this->aStatus !== null) {
if (!$this->aStatus->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aStatus->getValidationFailures());
}
}
if (($retval = CollectionPeer::doValidate($this, $columns)) !== true) {
$failureMap = array_merge($failureMap, $retval);
}
$this->alreadyInValidation = false;
}
return !empty($failureMap) ? $failureMap : true;
}
示例6: doValidate
/**
* This function performs the validation work for complex object models.
*
* In addition to checking the current object, all related objects will
* also be validated. If all pass then <code>true</code> is returned; otherwise
* an aggreagated array of ValidationFailed objects will be returned.
*
* @param array $columns Array of column names to validate.
* @return mixed <code>true</code> if all validations pass; array of <code>ValidationFailed</code> objets otherwise.
*/
protected function doValidate($columns = null)
{
if (!$this->alreadyInValidation) {
$this->alreadyInValidation = true;
$retval = null;
$failureMap = array();
// We call the validate method on the following object(s) if they
// were passed to this object by their coresponding set
// method. This object relates to these object(s) by a
// foreign key reference.
if ($this->aAgent !== null) {
if (!$this->aAgent->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aAgent->getValidationFailures());
}
}
if ($this->aUserRelatedByCreatedBy !== null) {
if (!$this->aUserRelatedByCreatedBy->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aUserRelatedByCreatedBy->getValidationFailures());
}
}
if ($this->aUserRelatedByUpdatedBy !== null) {
if (!$this->aUserRelatedByUpdatedBy->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aUserRelatedByUpdatedBy->getValidationFailures());
}
}
if ($this->aUserRelatedByDeletedBy !== null) {
if (!$this->aUserRelatedByDeletedBy->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aUserRelatedByDeletedBy->getValidationFailures());
}
}
if ($this->aUserRelatedByChildUpdatedBy !== null) {
if (!$this->aUserRelatedByChildUpdatedBy->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aUserRelatedByChildUpdatedBy->getValidationFailures());
}
}
if ($this->aStatus !== null) {
if (!$this->aStatus->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aStatus->getValidationFailures());
}
}
if (($retval = ProfilePeer::doValidate($this, $columns)) !== true) {
$failureMap = array_merge($failureMap, $retval);
}
if ($this->collProfilePropertys !== null) {
foreach ($this->collProfilePropertys as $referrerFK) {
if (!$referrerFK->validate($columns)) {
$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
}
}
}
if ($this->collSchemas !== null) {
foreach ($this->collSchemas as $referrerFK) {
if (!$referrerFK->validate($columns)) {
$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
}
}
}
if ($this->collVocabularys !== null) {
foreach ($this->collVocabularys as $referrerFK) {
if (!$referrerFK->validate($columns)) {
$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
}
}
}
$this->alreadyInValidation = false;
}
return !empty($failureMap) ? $failureMap : true;
}