showAddFormForItem() static public method

static public showAddFormForItem ( CommonDBTM $item, $withtemplate = '', $options = [] ) : boolean
$item CommonDBTM
$withtemplate (default '')
$options array
return boolean
Beispiel #1
0
 /**
  * @since version 0.90
  *
  * @param $item
  * @param $id
  * @param $params
  **/
 static function showSubForm(CommonDBTM $item, $id, $params)
 {
     if ($item instanceof Document_Item) {
         Document_Item::showAddFormForItem($params['parent'], '');
     } else {
         if (method_exists($item, "showForm")) {
             $item->showForm($id, $params);
         }
     }
 }
Beispiel #2
0
 /**
  * @since version 0.90
  *
  * @param $item
  * @param $id
  * @param $params
  **/
 static function showSubForm(CommonDBTM $item, $id, $params)
 {
     if ($item instanceof Document_Item) {
         $ticket = new self();
         $ticket->getFromDB($params['tickets_id']);
         Document_Item::showAddFormForItem($ticket, '');
     } else {
         if (method_exists($item, "showForm")) {
             $item->showForm($id, $params);
         }
     }
 }