Location: PHPKode > projects > AModules3 > amodules-3.0.1/samples/05-apiadmin-expanders/main.php
<?
include '../../trunk/loader.php';

class MyApi extends ApiAdmin {
    function page_Grants($p){
        $p->add('LoremIpsum',null,'Content');
    }
    function page_Index($p){
        $lister=$p->add('CompleteLister',null,'Content',array('samplelist','samplelist'));
        $lister->setSource('user');
        $lister->dq->field('User id');
        $paginator=$lister->add('Paginator',null,'paginator',array('paginator','ajax_paginator'));
        $paginator->useDQ($lister->dq)->region('Breakdown');
    }
    function init(){
        $this->readConfig();
        $this->dbConnect();
        parent::init();
    }
}

$api = new MyApi('AModules3_test05');


$api->main();
?>
Return current item: AModules3