Action_Helper_Datatable::init PHP Method

init() public method

public init ( ) : Action_Helper_Datatable
return Action_Helper_Datatable
    public function init()
    {
        $request = $this->getRequest();
        $this->getActionController()->getHelper('contextSwitch')->addActionContext($request->getParam('action', 'table'), 'json')->initContext();
        $view = $this->getActionController()->initView();
        $this->iOptions = array('sAjaxSource' => $view->url(array('controller' => $request->getParam('controller'), 'action' => $request->getParam('action', 'index'), 'format' => 'json')) . '?format=json', 'bServerSide' => true, 'bJQueryUI' => true, 'bAutoWidth' => true, 'bSaveState' => true, 'iDisplayLength' => 25, 'bLengthChange' => true, 'sPaginationType' => 'full_numbers', 'bPaginate' => true, 'sDom' => '<"H"lfri>t<"F"ip>', 'aoColumnDefs' => array());
        return $this;
    }