private function _sendSysmsg($uid, $blogid) { if (18 <= $uid && $uid <= 21) { $content = compact('uid', 'blogid'); $sysmsgApi = new KSysmsg_Api(); $sysmsgApi->iSend(0, KSysmsg_Api::BLOG, $content, $blogid); } }
public function getMulti($style, $page, $filter, $exstyle = null, $filter_style = 'default') { $num = $page['num']; $sysmsgApi = new KSysmsg_Api(); $msglist = $sysmsgApi->getIndexList($page['boundary'], $num, $next, $next_boundary); $page = compact('num', 'next', 'next_boundary'); return array('list' => $msglist, 'page' => $page); }
private function _sendSysmsg($uid, $albumid, $photoid) { if (18 <= $uid && $uid <= 21) { $photoApi = new KPhoto_Api(); $content = compact('uid', 'albumid', 'photoid'); $content['photolist'] = $photoApi->getPhotoList($uid, $albumid, 0, 9, $total); $sysmsgApi = new KSysmsg_Api(); $sysmsgApi->iSend(0, KSysmsg_Api::PHOTO, $content, $albumid); } }
<?php $num = 10; $sysmsgApi = new KSysmsg_Api(); $msglist = $sysmsgApi->getIndexList('0_0', $num, $next, $next_boundary); $page = compact('num', 'next', 'next_boundary'); $render = new KRender_www(); $render->oSetTemplate('www/index.html')->oSetData('msglist', $msglist)->oSetData('page', $page)->oSend();