. * * You can get complete code of ProjeQtOr, other resource, help and information * about contributors at http://www.projeqtor.org * *** DO NOT REMOVE THIS NOTICE ************************************************/ /** ============================================================================ * Risk. */ require_once('_securityCheck.php'); class Risk extends RiskMain { private static $_fieldsAttributes=array( "id"=>"nobr", "reference"=>"readonly", "name"=>"required", "idProject"=>"required", "idStatus"=>"required", "idRiskType"=>"required", "creationDate"=>"required", "handled"=>"hidden,nobr", "done"=>"hidden,nobr", "idle"=>"nobr", "idleDate"=>"nobr", "cancelled"=>"hidden,nobr", "projectReserveAmount"=>"readonly,hidden", "impactCost"=>"hidden", "Origin"=>"hidden", "initialEndDate"=>"", "actualEndDate"=>"hidden", "handledDate"=>"hidden", "doneDate"=>"hidden", "idSeverity"=>"hidden" ); private static $_staticDisplayStyling=array( ); private static $_colCaptionTransposition=array( ); public static $_defaultValues=array( . * * You can get complete code of ProjeQtOr, other resource, help and information * about contributors at http://www.projeqtor.org * *** DO NOT REMOVE THIS NOTICE ************************************************/ /** ============================================================================ * Risk. */ require_once('_securityCheck.php'); class Risk extends RiskMain { private static $_fieldsAttributes=array( "id"=>"nobr", "reference"=>"readonly", "name"=>"required", "idProject"=>"required", "idStatus"=>"required", "idRiskType"=>"required", "creationDate"=>"required", "handled"=>"hidden,nobr", "done"=>"hidden,nobr", "idle"=>"nobr", "idleDate"=>"nobr", "cancelled"=>"hidden,nobr", "projectReserveAmount"=>"readonly,hidden", "impactCost"=>"hidden", "Origin"=>"hidden", "initialEndDate"=>"", "actualEndDate"=>"hidden", "handledDate"=>"hidden", "doneDate"=>"hidden", "idSeverity"=>"hidden" ); private static $_staticDisplayStyling=array( ); private static $_colCaptionTransposition=array( ); public static $_defaultValues=array( ); /** ========================================================================== * Constructor * @param $id the id of the object in the database (null if not stored yet) * @return void */ function __construct($id = NULL, $withoutDependentObjects=false) { parent::__construct($id,$withoutDependentObjects); } /** ========================================================================== * Destructor * @return void */ function __destruct() { parent::__destruct(); } /** ========================================================================== * Return the specific fieldsAttributes * @return the fieldsAttributes */ protected function getStaticFieldsAttributes() { return array_merge(parent::getStaticFieldsAttributes(),self::$_fieldsAttributes); } /** ========================================================================== * Return the specific styling for fields * @return the fields styling */ public function getStaticDisplayStyling() { return self::$_staticDisplayStyling; } /** ============================================================================ * Set attribut from parent : merge current attributes with those of Main class * @return void */ public function setAttributes() { $parentClass=get_class($this)."Main"; if (!SqlElement::class_exists($parentClass)) return; $parent=new $parentClass($this->id); if (! method_exists($parent, "setAttributes")) return; $parent->setAttributes(); if (method_exists("SqlElement","mergeAttributesArrays")) { self::$_fieldsAttributes=SqlElement::mergeAttributesArrays(self::$_fieldsAttributes,$parent->getStaticFieldsAttributes()); } else { self::$_fieldsAttributes=array_merge_preserve_keys(self::$_fieldsAttributes,$parent->getStaticFieldsAttributes()); } } /** ============================================================================ * Return the specific colCaptionTransposition * @return the colCaptionTransposition */ protected function getStaticColCaptionTransposition($fld=null) { if (isset(self::$_colCaptionTransposition)) { return array_merge(parent::getStaticColCaptionTransposition($fld),self::$_colCaptionTransposition); } else { return parent::getStaticColCaptionTransposition($fld); } } /** ========================================================================== * Return the generic defaultValues * @return the layout */ protected function getStaticDefaultValues() { return self::$_defaultValues; } } ?>