本文整理汇总了PHP中Feed::priv_get方法的典型用法代码示例。如果您正苦于以下问题:PHP Feed::priv_get方法的具体用法?PHP Feed::priv_get怎么用?PHP Feed::priv_get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Feed
的用法示例。
在下文中一共展示了Feed::priv_get方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: new_dynamicAction
function new_dynamicAction()
{
$this->setTitle("Add Dynamic Content");
$this->readFeeds($this->ndc_feeds, Feed::priv_get($_SESSION['user'], 'dynamic'));
}
示例2: IN
function avail_feeds(){
if($this->screen_set){
$sql = "SELECT id FROM feed WHERE id NOT IN (SELECT feed_id FROM position WHERE field_id = '$this->id' AND screen_id = '$this->screen_id') ORDER BY id ASC";
$res = sql_query($sql);
$i = 0;
while($feed_row = sql_row_keyed($res, $i)){
//$data[$i] = new Feed($feed_row['id']);
$feeds[$i] = $feed_row['id'];
$i++;
}
$obj = new Feed();
$access = $obj->priv_get(new Screen($this->screen_id), 'subscribe');
foreach($access as $feed){
$allowed[] = $feed->id;
}
$intersect = array_intersect($allowed, $feeds);
foreach($intersect as $feed_id){
$data[] = new Feed($feed_id);
}
return $data;
} else {
return false; //No screen = no fun! Get it through your head!
}
}
示例3: listAction
function listAction()
{
$this->feeds = Feed::priv_get($_SESSION['user'], 'list');
}