function getNewButtonUrl($type=null) { $prop = $this->getPropertyDescriptor(); if (!$prop || $prop->getReadonly()) return false; $idProp = $prop->getIdPropertyDescriptor(); if (!$idProp) return false; if (!$type) $type = $this->getPropertyType(); $params = array('pntHandler' => 'EditDetailsPage' , 'pntRef' => $this->getFootprintId() , 'pntType' => $type , $idProp->getName() => $this->getReqParam('id') ); $appName = $this->controller->getAppName($this->getPropertyClassDir(), $type, $params['pntHandler']); return $this->controller->buildUrl($params, $appName); } |