本文整理汇总了PHP中WebVista_Model_ORM::getIterator方法的典型用法代码示例。如果您正苦于以下问题:PHP WebVista_Model_ORM::getIterator方法的具体用法?PHP WebVista_Model_ORM::getIterator怎么用?PHP WebVista_Model_ORM::getIterator使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WebVista_Model_ORM
的用法示例。
在下文中一共展示了WebVista_Model_ORM::getIterator方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getIterator
public function getIterator($dbSelect = null)
{
if ($dbSelect === null) {
return $this->_getIteratorBy(1, 1);
}
return parent::getIterator($dbSelect);
}
示例2: getIterator
public function getIterator($dbSelect = null)
{
if ($dbSelect === null) {
$db = Zend_Registry::get('dbAdapter');
$dbSelect = $db->select()->from($this->_table)->where('handlerType = ?', $this->handlerType)->order('name');
}
return parent::getIterator($dbSelect);
}
示例3: getIterator
public function getIterator($sqlSelect = null)
{
if ($sqlSelect === null) {
$db = Zend_Registry::get('dbAdapter');
$sqlSelect = $db->select()->from($this->_table)->order('dateTime DESC');
}
return parent::getIterator($sqlSelect);
}
示例4: getIteratorByTeam
public function getIteratorByTeam($teamId = null)
{
if ($teamId === null) {
$teamId = $this->teamId;
}
$db = Zend_Registry::get('dbAdapter');
$dbSelect = $db->select()->from($this->_table)->where("(status = 'new' AND (teamId = ? OR teamId = ''))", $teamId)->orWhere("status = 'new' AND userId = ?", (int) Zend_Auth::getInstance()->getIdentity()->personId)->order('dateTime DESC');
trigger_error($dbSelect->__toString(), E_USER_NOTICE);
return parent::getIterator($dbSelect);
}
示例5: getIteratorByPersonId
public function getIteratorByPersonId($personId = null)
{
if ($personId === null) {
$personId = $this->personId;
}
$personId = (int) $personId;
$db = Zend_Registry::get('dbAdapter');
$dbSelect = $db->select()->from($this->_table)->where('person_id = ' . $personId . ' OR patient_id = ' . $personId);
return parent::getIterator($dbSelect);
}
示例6: getIteratorByQueue
public function getIteratorByQueue()
{
$db = Zend_Registry::get('dbAdapter');
$sqlSelect = $db->select()->from($this->_table)->where('queue = 1')->order('dateTime DESC');
return parent::getIterator($sqlSelect);
}
示例7: getIteratorByParentId
public function getIteratorByParentId($id)
{
$db = Zend_Registry::get('dbAdapter');
$dbSelect = $db->select()->from($this->_table)->where('`nsdrDefinitionUuid` = ?', $id);
return parent::getIterator($dbSelect);
}