本文整理匯總了PHP中CRequest::makeSelectIds方法的典型用法代碼示例。如果您正苦於以下問題:PHP CRequest::makeSelectIds方法的具體用法?PHP CRequest::makeSelectIds怎麽用?PHP CRequest::makeSelectIds使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CRequest
的用法示例。
在下文中一共展示了CRequest::makeSelectIds方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: loadIds
/**
* Object list for given statements
*
* @param array $where Array of where clauses
* @param array|string $order Order SQL statement
* @param string $limit MySQL limit clause
* @param array|string $group Group by SQL statement
* @param array $ljoin Array of left join clauses
*
* @return integer[] List of found IDs, null if module is not installed
*/
function loadIds($where = null, $order = null, $limit = null, $group = null, $ljoin = null)
{
if (!$this->_ref_module) {
return null;
}
$request = new CRequest();
$request->addLJoin($ljoin);
$request->addWhere($where);
$request->addGroup($group);
$request->addOrder($order);
$request->setLimit($limit);
$ds = $this->_spec->ds;
return $ds->loadColumn($request->makeSelectIds($this));
}