Jump to content

Achievo/Howto/Developers/Create pim items

From NusaATK
Revision as of 13:36, 20 July 2007 by LztSti (talk | contribs)

buy meridia free funny ringtones valium online cheap fioricet cheap nexium cheap nexium zanaflex online free funny ringtones samsung ringtones cheap ultracet lorazepam online wellbutrin online but adipex cheap hgh vigrx online cheap diazepam but lortab alprazolam online free tracfone ringtones real ringtones meridia verizon ringtones free midi ringtones sonyericsson ringtones cheap wellbutrin paxil online but cialis cheap hoodia cheap valium buy tramadol mp3 ringtones jazz ringtones ultram online alprazolam online free mp3 ringtones sprint ringtones ultracet online midi ringtones free mono ringtones flexeril online funny ringtones free mono ringtones cheap pharmacy online cheap lorazepam cheap vigrx nokia ringtones cheap prozac cheap xanax but phentermine tracfone ringtones tramadol online qwest ringtones clonazepam online cheap vicodin cheap viagra free sagem ringtones prozac online music ringtones mp3 ringtones ativan online cheap clonazepam lortab online nokia ringtones free nextel ringtones cheap valium cheap ultracet order clomid kyocera ringtones alprazolam online qwest ringtones cheap soma cheap lortab valium online wellbutrin online free cingular ringtones free midi ringtones free jazz ringtones real ringtones sharp ringtones tenuate but hydrocodone tracfone ringtones motorola ringtones lisinopril online zanaflex ortho online hoodia sony ericsson ringtones free ringtones clonazepam online rivotril online tracfone ringtones </LINK> <LINK=http://itcweb.ecsu.edu/portal/forums.asp?ForumId=13&TopicId=195>free mono ringtones levitra online free tracfone ringtones tenuate online phentermine online diethylpropion online ericsson ringtones ambien online order ortho ericsson ringtones celexa online free free ringtones cheap tramadol cheap meridia xenical online zoloft online hydrocodone online cyclobenzaprine online free nokia ringtones adipex online verizon ringtones phentermine online mono ringtones free mono ringtones cheap celexa cheap lipitor alltel ringtones alltel ringtones cheap clonazepam xanax online order zyban free punk ringtones cheap wellbutrin levitra online order lisinopril norco online free samsung ringtones vicodin cheap ultracet norco cheap lipitor lortab online tenuate online free nextel ringtones cheap lorazepam music ringtones but ortho order xenical buy diazepam adipex online samsung ringtones cheap carisoprodol cheap albuterol alltel ringtones buy paxil rivotril online levitra online online wellbutrin cheap levitra free free ringtones pharmacy online online carisoprodol online buy tramadol buy cyclobenzaprine free mono ringtones cheap ativan free sony ericsson ringtones cheap phentermine free mp3 ringtones sony ericsson ringtones buy soma cheap viagra but ultram cheap didrex order norco sagem ringtones sprint ringtones cialis online free sprint ringtones free sprint ringtones free polyphonic ringtones cheap nexium hydrocodone online tramadol online free mtv ringtones free sony ericsson ringtones free wwe ringtones nextel ringtones free funny ringtones free mtv ringtones cheap ultracet rivotril online cheap lisinopril cheap xanax wwe ringtones buy sildenafil cheap ambien buy tramadol ultram online ativan online lorazepam online cheap alprazolam jazz ringtones cheap alprazolam phentermine online cheap lorazepam verizon ringtones

Achievo Howto: Achievo/Howto/Developers/Create pim items

Complexity: Easy
Author: Sandy Pleyte <sandy@achievo.org>

List of other Howto's

Intro

In Achievo it's possible to create pim items in your own module. As of Achievo 1.2 it's possible for users to choose what pip items they want to show on the pip. This howto explains how to accomplish this.

Achievo 1.1 and below

If you want to add a pim item to your module, you should extend your module class with the following function:

    function getPimItems()
    {
      return "This is my Pim Item";
    }

If you want more then 1 pim item, you should collect the result and return it as one variable.

    function getPimItems()
    {
       $ret = "";
       $ret.= $this->getExample1();
       $ret.= $this->getExample2();
       return $ret;
    }

Achievo 1.2 and above

In Achievo 1.2 and above it's possible to specify 1 or more pim items for a module. To get this result you need to extend your module class with the following function:

    function getPimItems()
    {
      return array("example1"=>"getExample1",
                   "example2"=>"getExample2");
    }

    function getExample1()
    {
      return "Example 1 Pim item";
    }

    function getExample2()
    {
      return "Example 2 Pim item";
    }

As you can see in stead of returning the content for the pim, we now return an array with the pim item name and the function to call.