当前位置: 首页>>代码示例>>PHP>>正文


PHP BasePeer::doValidate方法代码示例

本文整理汇总了PHP中BasePeer::doValidate方法的典型用法代码示例。如果您正苦于以下问题:PHP BasePeer::doValidate方法的具体用法?PHP BasePeer::doValidate怎么用?PHP BasePeer::doValidate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BasePeer的用法示例。


在下文中一共展示了BasePeer::doValidate方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: doValidate

 /**
  * Validates all modified columns of given Content object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      Content $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(Content $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(ContentPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(ContentPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(ContentPeer::CON_LANG)) {
             $columns[ContentPeer::CON_LANG] = $obj->getConLang();
         }
     }
     return BasePeer::doValidate(ContentPeer::DATABASE_NAME, ContentPeer::TABLE_NAME, $columns);
 }
开发者ID:emildev35,项目名称:processmaker,代码行数:34,代码来源:BaseContentPeer.php

示例2: doValidate

 /**
  * Validates all modified columns of given sfGuardUserGroup object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      sfGuardUserGroup $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(sfGuardUserGroup $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(sfGuardUserGroupPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(sfGuardUserGroupPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
     }
     $res = BasePeer::doValidate(sfGuardUserGroupPeer::DATABASE_NAME, sfGuardUserGroupPeer::TABLE_NAME, $columns);
     if ($res !== true) {
         foreach ($res as $failed) {
             $col = sfGuardUserGroupPeer::translateFieldname($failed->getColumn(), BasePeer::TYPE_COLNAME, BasePeer::TYPE_PHPNAME);
         }
     }
     return $res;
 }
开发者ID:anvaya,项目名称:nckids,代码行数:37,代码来源:BasesfGuardUserGroupPeer.php

示例3: doValidate

 /**
  * Validates all modified columns of given BpmnProject object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      BpmnProject $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(BpmnProject $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(BpmnProjectPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(BpmnProjectPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
     }
     return BasePeer::doValidate(BpmnProjectPeer::DATABASE_NAME, BpmnProjectPeer::TABLE_NAME, $columns);
 }
开发者ID:emildev35,项目名称:processmaker,代码行数:31,代码来源:BaseBpmnProjectPeer.php

示例4: doValidate

 /**
  * Validates all modified columns of given Articulovariantereorden object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param Articulovariantereorden $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate($obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(ArticulovariantereordenPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(ArticulovariantereordenPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->hasColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
     }
     return BasePeer::doValidate(ArticulovariantereordenPeer::DATABASE_NAME, ArticulovariantereordenPeer::TABLE_NAME, $columns);
 }
开发者ID:jalvarez14,项目名称:hva,代码行数:31,代码来源:BaseArticulovariantereordenPeer.php

示例5: doValidate

 /**
  * Validates all modified columns of given Step object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      Step $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(Step $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(StepPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(StepPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(StepPeer::STEP_TYPE_OBJ)) {
             $columns[StepPeer::STEP_TYPE_OBJ] = $obj->getStepTypeObj();
         }
     }
     return BasePeer::doValidate(StepPeer::DATABASE_NAME, StepPeer::TABLE_NAME, $columns);
 }
开发者ID:nshong,项目名称:processmaker,代码行数:34,代码来源:BaseStepPeer.php

示例6: doValidate

	/**
	 * Validates all modified columns of given CahierTexteCompteRenduFichierJoint object.
	 * If parameter $columns is either a single column name or an array of column names
	 * than only those columns are validated.
	 *
	 * NOTICE: This does not apply to primary or foreign keys for now.
	 *
	 * @param      CahierTexteCompteRenduFichierJoint $obj The object to validate.
	 * @param      mixed $cols Column name or array of column names.
	 *
	 * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
	 */
	public static function doValidate($obj, $cols = null)
	{
		$columns = array();

		if ($cols) {
			$dbMap = Propel::getDatabaseMap(CahierTexteCompteRenduFichierJointPeer::DATABASE_NAME);
			$tableMap = $dbMap->getTable(CahierTexteCompteRenduFichierJointPeer::TABLE_NAME);

			if (! is_array($cols)) {
				$cols = array($cols);
			}

			foreach ($cols as $colName) {
				if ($tableMap->containsColumn($colName)) {
					$get = 'get' . $tableMap->getColumn($colName)->getPhpName();
					$columns[$colName] = $obj->$get();
				}
			}
		} else {

		}

		return BasePeer::doValidate(CahierTexteCompteRenduFichierJointPeer::DATABASE_NAME, CahierTexteCompteRenduFichierJointPeer::TABLE_NAME, $columns);
	}
开发者ID:rhertzog,项目名称:lcs,代码行数:36,代码来源:BaseCahierTexteCompteRenduFichierJointPeer.php

示例7: doValidate

 /**
  * Validates all modified columns of given SwimlanesElements object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      SwimlanesElements $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(SwimlanesElements $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(SwimlanesElementsPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(SwimlanesElementsPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(SwimlanesElementsPeer::SWI_UID)) {
             $columns[SwimlanesElementsPeer::SWI_UID] = $obj->getSwiUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(SwimlanesElementsPeer::PRO_UID)) {
             $columns[SwimlanesElementsPeer::PRO_UID] = $obj->getProUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(SwimlanesElementsPeer::SWI_TYPE)) {
             $columns[SwimlanesElementsPeer::SWI_TYPE] = $obj->getSwiType();
         }
     }
     return BasePeer::doValidate(SwimlanesElementsPeer::DATABASE_NAME, SwimlanesElementsPeer::TABLE_NAME, $columns);
 }
开发者ID:nshong,项目名称:processmaker,代码行数:40,代码来源:BaseSwimlanesElementsPeer.php

示例8: doValidate

    /**
     * Validates all modified columns of given Dynaform object.
     * If parameter $columns is either a single column name or an array of column names
     * than only those columns are validated.
     *
     * NOTICE: This does not apply to primary or foreign keys for now.
     *
     * @param      Dynaform $obj The object to validate.
     * @param      mixed $cols Column name or array of column names.
     *
     * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
     */
    public static function doValidate(Dynaform $obj, $cols = null)
    {
        $columns = array();

        if ($cols) {
            $dbMap = Propel::getDatabaseMap(DynaformPeer::DATABASE_NAME);
            $tableMap = $dbMap->getTable(DynaformPeer::TABLE_NAME);

            if (! is_array($cols)) {
                $cols = array($cols);
            }

            foreach ($cols as $colName) {
                if ($tableMap->containsColumn($colName)) {
                    $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                    $columns[$colName] = $obj->$get();
                }
            }
        } else {

        if ($obj->isNew() || $obj->isColumnModified(DynaformPeer::DYN_TYPE))
            $columns[DynaformPeer::DYN_TYPE] = $obj->getDynType();

        }

        return BasePeer::doValidate(DynaformPeer::DATABASE_NAME, DynaformPeer::TABLE_NAME, $columns);
    }
开发者ID:hpx2206,项目名称:processmaker-1,代码行数:39,代码来源:BaseDynaformPeer.php

示例9: doValidate

 /**
  * Validates all modified columns of given AppDelegation object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      AppDelegation $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(AppDelegation $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(AppDelegationPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(AppDelegationPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(AppDelegationPeer::DEL_TYPE)) {
             $columns[AppDelegationPeer::DEL_TYPE] = $obj->getDelType();
         }
         if ($obj->isNew() || $obj->isColumnModified(AppDelegationPeer::DEL_PRIORITY)) {
             $columns[AppDelegationPeer::DEL_PRIORITY] = $obj->getDelPriority();
         }
         if ($obj->isNew() || $obj->isColumnModified(AppDelegationPeer::DEL_THREAD_STATUS)) {
             $columns[AppDelegationPeer::DEL_THREAD_STATUS] = $obj->getDelThreadStatus();
         }
     }
     return BasePeer::doValidate(AppDelegationPeer::DATABASE_NAME, AppDelegationPeer::TABLE_NAME, $columns);
 }
开发者ID:rodrigoivan,项目名称:processmaker,代码行数:40,代码来源:BaseAppDelegationPeer.php

示例10: doValidate

 /**
  * Validates all modified columns of given ReportVar object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      ReportVar $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(ReportVar $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(ReportVarPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(ReportVarPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(ReportVarPeer::REP_VAR_UID)) {
             $columns[ReportVarPeer::REP_VAR_UID] = $obj->getRepVarUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(ReportVarPeer::REP_TAB_UID)) {
             $columns[ReportVarPeer::REP_TAB_UID] = $obj->getRepTabUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(ReportVarPeer::REP_VAR_NAME)) {
             $columns[ReportVarPeer::REP_VAR_NAME] = $obj->getRepVarName();
         }
         if ($obj->isNew() || $obj->isColumnModified(ReportVarPeer::REP_VAR_TYPE)) {
             $columns[ReportVarPeer::REP_VAR_TYPE] = $obj->getRepVarType();
         }
     }
     return BasePeer::doValidate(ReportVarPeer::DATABASE_NAME, ReportVarPeer::TABLE_NAME, $columns);
 }
开发者ID:nshong,项目名称:processmaker,代码行数:43,代码来源:BaseReportVarPeer.php

示例11: doValidate

 /**
  * Validates all modified columns of given TimerEvent object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      TimerEvent $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(TimerEvent $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(TimerEventPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(TimerEventPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(TimerEventPeer::TMREVN_OPTION)) {
             $columns[TimerEventPeer::TMREVN_OPTION] = $obj->getTmrevnOption();
         }
         if ($obj->isNew() || $obj->isColumnModified(TimerEventPeer::TMREVN_STATUS)) {
             $columns[TimerEventPeer::TMREVN_STATUS] = $obj->getTmrevnStatus();
         }
     }
     return BasePeer::doValidate(TimerEventPeer::DATABASE_NAME, TimerEventPeer::TABLE_NAME, $columns);
 }
开发者ID:emildev35,项目名称:processmaker,代码行数:37,代码来源:BaseTimerEventPeer.php

示例12: doValidate

 /**
  * Validates all modified columns of given Language object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      Language $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(Language $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(LanguagePeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(LanguagePeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(LanguagePeer::LAN_DIRECTION)) {
             $columns[LanguagePeer::LAN_DIRECTION] = $obj->getLanDirection();
         }
         if ($obj->isNew() || $obj->isColumnModified(LanguagePeer::LAN_ENABLED)) {
             $columns[LanguagePeer::LAN_ENABLED] = $obj->getLanEnabled();
         }
     }
     return BasePeer::doValidate(LanguagePeer::DATABASE_NAME, LanguagePeer::TABLE_NAME, $columns);
 }
开发者ID:nshong,项目名称:processmaker,代码行数:37,代码来源:BaseLanguagePeer.php

示例13: doValidate

 /**
  * Validates all modified columns of given AppDocument object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      AppDocument $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(AppDocument $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(AppDocumentPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(AppDocumentPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(AppDocumentPeer::APP_DOC_UID)) {
             $columns[AppDocumentPeer::APP_DOC_UID] = $obj->getAppDocUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(AppDocumentPeer::APP_UID)) {
             $columns[AppDocumentPeer::APP_UID] = $obj->getAppUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(AppDocumentPeer::DEL_INDEX)) {
             $columns[AppDocumentPeer::DEL_INDEX] = $obj->getDelIndex();
         }
         if ($obj->isNew() || $obj->isColumnModified(AppDocumentPeer::DOC_UID)) {
             $columns[AppDocumentPeer::DOC_UID] = $obj->getDocUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(AppDocumentPeer::USR_UID)) {
             $columns[AppDocumentPeer::USR_UID] = $obj->getUsrUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(AppDocumentPeer::APP_DOC_TYPE)) {
             $columns[AppDocumentPeer::APP_DOC_TYPE] = $obj->getAppDocType();
         }
         if ($obj->isNew() || $obj->isColumnModified(AppDocumentPeer::APP_DOC_CREATE_DATE)) {
             $columns[AppDocumentPeer::APP_DOC_CREATE_DATE] = $obj->getAppDocCreateDate();
         }
         if ($obj->isNew() || $obj->isColumnModified(AppDocumentPeer::APP_DOC_STATUS)) {
             $columns[AppDocumentPeer::APP_DOC_STATUS] = $obj->getAppDocStatus();
         }
     }
     return BasePeer::doValidate(AppDocumentPeer::DATABASE_NAME, AppDocumentPeer::TABLE_NAME, $columns);
 }
开发者ID:emildev35,项目名称:processmaker,代码行数:55,代码来源:BaseAppDocumentPeer.php

示例14: doValidate

 /**
  * Validates all modified columns of given CaseTracker object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      CaseTracker $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(CaseTracker $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(CaseTrackerPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(CaseTrackerPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(CaseTrackerPeer::PRO_UID)) {
             $columns[CaseTrackerPeer::PRO_UID] = $obj->getProUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(CaseTrackerPeer::CT_MAP_TYPE)) {
             $columns[CaseTrackerPeer::CT_MAP_TYPE] = $obj->getCtMapType();
         }
         if ($obj->isNew() || $obj->isColumnModified(CaseTrackerPeer::CT_DERIVATION_HISTORY)) {
             $columns[CaseTrackerPeer::CT_DERIVATION_HISTORY] = $obj->getCtDerivationHistory();
         }
         if ($obj->isNew() || $obj->isColumnModified(CaseTrackerPeer::CT_MESSAGE_HISTORY)) {
             $columns[CaseTrackerPeer::CT_MESSAGE_HISTORY] = $obj->getCtMessageHistory();
         }
     }
     return BasePeer::doValidate(CaseTrackerPeer::DATABASE_NAME, CaseTrackerPeer::TABLE_NAME, $columns);
 }
开发者ID:nshong,项目名称:processmaker,代码行数:43,代码来源:BaseCaseTrackerPeer.php

示例15: doValidate

 /**
  * Validates all modified columns of given TaskUser object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      TaskUser $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(TaskUser $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(TaskUserPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(TaskUserPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(TaskUserPeer::TAS_UID)) {
             $columns[TaskUserPeer::TAS_UID] = $obj->getTasUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(TaskUserPeer::USR_UID)) {
             $columns[TaskUserPeer::USR_UID] = $obj->getUsrUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(TaskUserPeer::TU_TYPE)) {
             $columns[TaskUserPeer::TU_TYPE] = $obj->getTuType();
         }
         if ($obj->isNew() || $obj->isColumnModified(TaskUserPeer::TU_RELATION)) {
             $columns[TaskUserPeer::TU_RELATION] = $obj->getTuRelation();
         }
     }
     return BasePeer::doValidate(TaskUserPeer::DATABASE_NAME, TaskUserPeer::TABLE_NAME, $columns);
 }
开发者ID:nshong,项目名称:processmaker,代码行数:43,代码来源:BaseTaskUserPeer.php


注:本文中的BasePeer::doValidate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。