本文整理汇总了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));
}