...
| Code Block | ||||
|---|---|---|---|---|
| ||||
{ module name='feed.comment' }
|
Wiki Markup By
using
*{
module
name=
''...
'' }
*,
you
integrate
block
to
your
view.
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
<?php
public function getForBrowse($id)
{
if (Phpfox::isModule('friend')) {
db()->select('f.friend_id AS is_friend, ')
->leftJoin(Phpfox::getT('friend'), 'f', "f.user_id = t.user_id AND f.friend_user_id = " . Phpfox::getUserId());
}
if (Phpfox::isModule('like')) {
db()->select('l.like_id AS is_liked, ')
->leftJoin(Phpfox::getT('like'), 'l', 'l.type_id = \'todo\' AND l.item_id = t.task_id AND l.user_id = ' . Phpfox::getUserId());
}
return db()->select('t.*')
->from(Phpfox::getT('todolist_task'), 't')
->where('task_id='. (int)$id)
->execute('getSlaveRow');
}
|
...