Example #1
0
 /**
  * @param string $title
  * @param bool   $checkperm
  *
  * @return PublisherItemForm
  */
 public function getForm($title = 'default', $checkperm = true)
 {
     include_once XOOPS_ROOT_PATH . '/modules/publisher/class/form/item.php';
     $form = new PublisherItemForm($title, 'form', xoops_getenv('PHP_SELF'));
     $form->setCheckPermissions($checkperm);
     $form->createElements($this);
     return $form;
 }
Example #2
0
 /**
  * @param string $title
  * @param bool   $checkperm
  *
  * @return PublisherItemForm
  */
 public function getForm($title = 'default', $checkperm = true)
 {
     include_once $GLOBALS['xoops']->path('modules/' . PUBLISHER_DIRNAME . '/class/form/item.php');
     $form = new PublisherItemForm($title, 'form', xoops_getenv('PHP_SELF'));
     $form->setCheckPermissions($checkperm);
     $form->createElements($this);
     return $form;
 }