/** * Check if currently loaded row is save-able * * @param RequestHTTP $po_request * @return bool True if record can be saved, false if not */ public function isSaveable($po_request, $ps_bundle_name = null) { // Is row loaded? if (!($vn_list_id = $this->get('list_id'))) { // this happens when a new list item is about to be created. in those cases we extract the list from the request. $vn_list_id = $this->_getListIDFromRequest($po_request); } if (!$vn_list_id) { return false; } $t_list = new ca_lists($vn_list_id); if (!$t_list->getPrimaryKey()) { return false; } return $t_list->isSaveable($po_request, $ps_bundle_name); }