function showForm($ID, $options = array()) { if ($ID > 0) { $this->check($ID, 'r'); } else { // Create item $this->check(-1, 'w'); $this->getEmpty(); } $this->showTabs($options); $this->addDivForTabs(); $item = new self(); //I know this is REALLY ugly... if ($ID == 0) { $item->showBehaviorForm($ID); } return true; }
function showForm($ID, $options = array()) { if ($ID > 0) { $this->check($ID, READ); } else { // Create item $this->check(-1, CREATE); $this->getEmpty(); } $this->initForm($ID); $item = new self(); //I know this is REALLY ugly... if ($ID == 0) { $item->showBehaviorForm($ID); } return true; }