XOOPS
2.6.0
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
system.php
Go to the documentation of this file.
1
<?php
20
class
CommentsSystemPlugin
extends
Xoops\Module\Plugin\PluginAbstract
implements
SystemPluginInterface
21
{
27
public
function
userPosts
(
$uid
)
28
{
29
$comments
=
Comments::getInstance
();
//need this here to init constants
30
$criteria
=
new
CriteriaCompo
();
31
$criteria
->add(
new
Criteria
(
'status'
, COMMENTS_ACTIVE));
32
$criteria
->add(
new
Criteria
(
'uid'
,
$uid
));
33
return
Comments::getInstance
()->getHandlerComment()->getCount(
$criteria
);
34
}
35
39
public
function
waiting
()
40
{
41
$comments
=
Comments::getInstance
();
//need this here to init constants
42
$criteria
=
new
CriteriaCompo
(
new
Criteria
(
'status'
, COMMENTS_PENDING));
43
$ret = array();
44
if
(
$count
=
$comments
->getHandlerComment()->getCount(
$criteria
)) {
45
$ret[
'count'
] =
$count
;
46
$ret[
'name'
] =
Xoops::getInstance
()->getHandlerModule()->getBydirname(
'comments'
)->getVar(
'name'
);
47
$ret[
'link'
] =
Xoops::getInstance
()->url(
'modules/comments/admin/main.php'
);
48
}
49
return
$ret;
50
}
51
52
public
function
backend
(
$limit
)
53
{
54
return
array();
55
}
56
66
public
function
userMenus
()
67
{
68
// TODO: Implement userMenus() method.
69
}
70
}
CommentsSystemPlugin\waiting
waiting()
Definition:
system.php:39
$count
$count
Definition:
page_tablesfill.php:45
SystemPluginInterface
Definition:
interface.php:19
Xoops\getInstance
static getInstance()
Definition:
Xoops.php:160
CommentsSystemPlugin
Definition:
system.php:20
Comments\getInstance
static getInstance()
Definition:
helper.php:46
CommentsSystemPlugin\backend
backend($limit)
Definition:
system.php:52
CommentsSystemPlugin\userPosts
userPosts($uid)
Definition:
system.php:27
$uid
if(!$xoops->isUser()) $uid
Definition:
index.php:31
$comments
$comments
Definition:
main.php:48
$limit
$limit
Definition:
findusers.php:202
$criteria
$criteria
Definition:
page_configsite.php:52
Xoops\Module\Plugin\PluginAbstract
Definition:
PluginAbstract.php:21
CriteriaCompo
Definition:
criteria.php:22
Criteria
Definition:
criteria.php:29
CommentsSystemPlugin\userMenus
userMenus()
Definition:
system.php:66
usr64
htdocs
modules
comments
class
plugin
system.php
Generated on Fri May 22 2015 03:07:03 for XOOPS by
1.8.9.1