function prepare()
 {
     parent::prepare();
     $this->setDefaultTemplate($this->prefix('main.html'));
 }
 function NBFrameAdminAction(&$environment)
 {
     parent::NBFrameAction($environment);
     NBFrame::using('AdminRender');
     $this->mRender =& new NBFrameAdminRender($this);
 }
 function prepare($classprefix, $name, $caption)
 {
     parent::prepare();
     $this->mDefaultOp = 'edit';
     $this->mAllowedOp = array('edit', 'new', 'insert', 'save');
     $this->mName = $name;
     $this->mCaption = $caption;
     if (!$this->mObjectHandler) {
         $this->mObjectHandler =& NBFrame::getHandler($classprefix, $this->mEnvironment);
     }
     $this->setObjectKeyField();
     if (empty($this->mListSortDefault)) {
         $this->mListSortDefault = $this->mObjectKeyFields[0];
     }
     if (empty($this->mListOrderDefault)) {
         $this->mListOrderDefault = 'asc';
     }
 }
 function prepare()
 {
     parent::prepare();
     $this->setDefaultTemplate($this->prefix('main.html'));
     $this->mRequest->defParam('cat', 'GET', 'int');
 }