本文整理匯總了PHP中Picture::getList方法的典型用法代碼示例。如果您正苦於以下問題:PHP Picture::getList方法的具體用法?PHP Picture::getList怎麽用?PHP Picture::getList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Picture
的用法示例。
在下文中一共展示了Picture::getList方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getInfoPictures
public function getInfoPictures($type)
{
return Picture::getList('SELECT p.src, i.name FROM info i LEFT JOIN photo p ON p.info_id = i.id WHERE p.info_id IS NOT NULL AND p.user_id IS NULL AND i.quarter_id = :quarter_id AND i.type = :type', array('quarter_id' => $this->id, 'type' => $type));
}
示例2: getPictures
public function getPictures()
{
return Picture::getList('SELECT id, quarter_id, src, info_id, user_id FROM photo WHERE user_id IS NULL AND quarter_id = :quarter_id AND info_id = :info_id ORDER BY id ASC', array('info_id' => $this->id, 'quarter_id' => $this->quarter_id));
}