using Getcount plugin

3 views
Skip to first unread message

kevinkevin

unread,
Apr 1, 2008, 2:03:07 PM4/1/08
to Php Object Generator
Hi I saw the basic example of using the plugin.


but was curious of 2 things.

1) Do I NEED to run setuop to use the plugin- or can I just place it
in the plug in directory

2) if I have a specific query (where `color`='red' and `user`=5) and I
need a count of that - how best to use getCount?

thanks

Kevin

Crispy

unread,
Apr 2, 2008, 7:17:43 PM4/2/08
to Php Object Generator
Hi Kevin,

1) no - just put it in the plugin folder and it will be available.
Setup ensures its tests run and is available.

2) - if I remember correctly - you would do
$cnt = $myobject-
>getCount(array(array('color','=','red'),array('user','=','5')));
just like any normal POG method.

-Mark
Reply all
Reply to author
Forward
0 new messages