本文整理汇总了PHP中Core_Model_Item_Abstract::getAdminList方法的典型用法代码示例。如果您正苦于以下问题:PHP Core_Model_Item_Abstract::getAdminList方法的具体用法?PHP Core_Model_Item_Abstract::getAdminList怎么用?PHP Core_Model_Item_Abstract::getAdminList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Core_Model_Item_Abstract
的用法示例。
在下文中一共展示了Core_Model_Item_Abstract::getAdminList方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getActivityAbout
//.........这里部分代码省略.........
}
}
$member_ids = array();
if ($actionFilter == 'owner') {
if ($about instanceof User_Model_User) {
$member_ids[] = $about->getIdentity();
} elseif ($about instanceof Group_Model_Group || $about instanceof Advgroup_Model_Group) {
$objectParent = $about->getParent('user');
if ($objectParent instanceof User_Model_User) {
$member_ids[] = $objectParent->getIdentity();
}
} else {
$objectParent = $about->getParent('user');
if ($objectParent instanceof User_Model_User) {
$member_ids[] = $objectParent->getIdentity();
}
}
} elseif ($actionFilter == 'officers') {
if ($about instanceof Group_Model_Group || $about instanceof Advgroup_Model_Group) {
$objectParent = $about->getParent('user');
if ($objectParent instanceof User_Model_User) {
$member_ids[] = $objectParent->getIdentity();
}
foreach ($about->getOfficerList()->getAll() as $value) {
$member_ids[] = $value->child_id;
}
}
} elseif ($actionFilter == 'admins') {
if ($about instanceof Ynbusinesspages_Model_Business) {
$objectParent = $about->getParent('user');
if ($objectParent instanceof User_Model_User) {
$member_ids[] = $objectParent->getIdentity();
}
foreach ($about->getAdminList()->getAll() as $value) {
$member_ids[] = $value->child_id;
}
}
} elseif ($actionFilter == 'membership') {
if (in_array($about->getType(), array('event', 'group', 'ynbusinesspages_business'))) {
$members = $about->membership()->getMembers(true);
foreach ($members as $member) {
$member_ids[] = $member->getIdentity();
}
} else {
$member_ids = $user->membership()->getMembershipsOfIds();
}
if (empty($member_ids)) {
return array();
}
}
foreach ($responses as $response) {
if (empty($response)) {
continue;
}
// Target info
$select = $streamTable->select()->from($streamTable->info('name'), 'action_id')->where('target_type = ?', $response['type']);
if (empty($response['data'])) {
// Simple
$select->where('target_id = ?', 0);
} else {
if (is_scalar($response['data']) || count($response['data']) === 1) {
// Single
if (is_array($response['data'])) {
list($response['data']) = $response['data'];
}
$select->where('target_id = ?', $response['data']);