本文整理汇总了PHP中ConfigurationPeer::doSelect方法的典型用法代码示例。如果您正苦于以下问题:PHP ConfigurationPeer::doSelect方法的具体用法?PHP ConfigurationPeer::doSelect怎么用?PHP ConfigurationPeer::doSelect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ConfigurationPeer
的用法示例。
在下文中一共展示了ConfigurationPeer::doSelect方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: putTypeView
function putTypeView()
{
require_once 'classes/model/Configuration.php';
$oConfiguration = new Configuration();
$oCriteria = new Criteria('workflow');
$oCriteria->add(ConfigurationPeer::CFG_UID, 'StartNewCase');
$oCriteria->add(ConfigurationPeer::USR_UID, $_SESSION['USER_LOGGED']);
if (ConfigurationPeer::doCount($oCriteria)) {
$conf = ConfigurationPeer::doSelect($oCriteria);
return $conf[0]->getCfgValue();
} else {
return 'dropdown';
}
}
示例2: retrieveByPK
/**
* Retrieve object using using composite pkey values.
* @param string $cfg_uid
@param string $obj_uid
@param string $pro_uid
@param string $usr_uid
@param string $app_uid
* @param Connection $con
* @return Configuration
*/
public static function retrieveByPK($cfg_uid, $obj_uid, $pro_uid, $usr_uid, $app_uid, $con = null)
{
if ($con === null) {
$con = Propel::getConnection(self::DATABASE_NAME);
}
$criteria = new Criteria();
$criteria->add(ConfigurationPeer::CFG_UID, $cfg_uid);
$criteria->add(ConfigurationPeer::OBJ_UID, $obj_uid);
$criteria->add(ConfigurationPeer::PRO_UID, $pro_uid);
$criteria->add(ConfigurationPeer::USR_UID, $usr_uid);
$criteria->add(ConfigurationPeer::APP_UID, $app_uid);
$v = ConfigurationPeer::doSelect($criteria, $con);
return !empty($v) ? $v[0] : null;
}
示例3: retrieveByPKs
/**
* Retrieve multiple objects by pkey.
*
* @param array $pks List of primary keys
* @param PropelPDO $con the connection to use
* @throws PropelException Any exceptions caught during processing will be
* rethrown wrapped into a PropelException.
*/
public static function retrieveByPKs($pks, PropelPDO $con = null)
{
if ($con === null) {
$con = Propel::getConnection(ConfigurationPeer::DATABASE_NAME, Propel::CONNECTION_READ);
}
$objs = null;
if (empty($pks)) {
$objs = array();
} else {
$criteria = new Criteria(ConfigurationPeer::DATABASE_NAME);
$criteria->add(ConfigurationPeer::ID, $pks, Criteria::IN);
$objs = ConfigurationPeer::doSelect($criteria, $con);
}
return $objs;
}