static public showAddFormForItem ( CommonDBTM $item, $withtemplate = '', $options = [] ) : boolean | ||
$item | CommonDBTM | |
$withtemplate | (default '') | |
$options | array | |
Результат | boolean |
/** * @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); } } }
/** * @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); } } }