. * * You can get complete code of ProjeQtOr, other resource, help and information * about contributors at http://www.projeqtor.org * *** DO NOT REMOVE THIS NOTICE ************************************************/ /** ============================================================================ * Action is establised during meeting, to define an action to be followed. */ require_once('_securityCheck.php'); class Project extends ProjectMain { private static $_fieldsAttributes=array( "name"=>"required", "done"=>"nobr", "idle"=>"nobr", "handled"=>"nobr", "sortOrder"=>"hidden", "codeType"=>"hidden", "idProjectType"=>"required", "longitude"=>"hidden", "latitude"=>"hidden", "idStatus"=>"required", "idleDate"=>"nobr", "cancelled"=>"nobr", "organizationInherited"=>"hidden", "organizationElementary"=>"hidden", "fixPlanning"=>"nobr", "fixPerimeter"=>"nobr", "isUnderConstruction"=>"nobr", "excludeFromGlobalPlanning"=>"nobr", "commandOnValidWork"=>"nobr", "isLeaveMngProject"=>"hidden", "locked"=>"hidden", "idCategory"=>"", "idContact"=>"hidden", "contractCode"=>"hidden", "clientCode"=>"hidden", "objectives"=>"hidden", "_sec_Progress"=>"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 ************************************************/ /** ============================================================================ * Action is establised during meeting, to define an action to be followed. */ require_once('_securityCheck.php'); class Project extends ProjectMain { private static $_fieldsAttributes=array( "name"=>"required", "done"=>"nobr", "idle"=>"nobr", "handled"=>"nobr", "sortOrder"=>"hidden", "codeType"=>"hidden", "idProjectType"=>"required", "longitude"=>"hidden", "latitude"=>"hidden", "idStatus"=>"required", "idleDate"=>"nobr", "cancelled"=>"nobr", "organizationInherited"=>"hidden", "organizationElementary"=>"hidden", "fixPlanning"=>"nobr", "fixPerimeter"=>"nobr", "isUnderConstruction"=>"nobr", "excludeFromGlobalPlanning"=>"nobr", "commandOnValidWork"=>"nobr", "isLeaveMngProject"=>"hidden", "locked"=>"hidden", "idCategory"=>"", "idContact"=>"hidden", "contractCode"=>"hidden", "clientCode"=>"hidden", "objectives"=>"hidden", "_sec_Progress"=>"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 */ // MTY - LEAVE SYSTEM function __construct($id = NULL, $withoutDependentObjects=false) { parent::__construct($id,$withoutDependentObjects); // MTY - LEAVE SYSTEM } /** ========================================================================== * 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; } } ?>