/**
  * Class constructor
  * 
  * @param resource &$db reference to the database handler
  */
 function __construct(&$db)
 {
     parent::__construct();
     $this->getTypes();
     // populate types property
     $this->db =& $db;
 }
示例#2
0
 /**
  * Class costructor
  * @param resource &$db reference to database handler
  */
 function __construct(&$db)
 {
     parent::__construct();
     $this->db =& $db;
     $this->node_descr_id = array_flip($this->node_types);
     $this->object_table = $this->tables['nodes_hierarchy'];
 }
 /** class constructor
  * @param $label string the label to localize, use {%1} to {%n} for parameters inserted into the localized string 
  * @param $args array the array of parameters
  */
 public function __construct($label = null, $args = null)
 {
     parent::__construct();
     $this->helper = new tlMetaStringHelper();
     if ($label) {
         $this->initialize($label, $args);
     }
 }
 /**
  * constructor
  * @param tlInputParameter $parameterInfo Infos about the parameter source
  * @param tl<TYPE>ValidationInfo $validationInfo Info about the validation of the parameter
  */
 function __construct($parameterInfo, $validationInfo = null)
 {
     parent::__construct();
     $this->validationInfo = $validationInfo;
     $this->parameterInfo = $parameterInfo;
     $this->fetchParameter();
     $this->normalize();
     $this->validate();
 }
示例#5
0
 /**
  * Class costructor
  * @param resource &$db reference to database handler
  */
 function __construct(&$db)
 {
     parent::__construct();
     $this->db =& $db;
     $this->node_descr_id = array_flip($this->node_types);
     $this->object_table = $this->tables['nodes_hierarchy'];
     $this->node_tables = $this->node_tables_by['name'];
     foreach ($this->node_tables_by['name'] as $key => $tbl) {
         $this->node_tables_by['id'][$this->node_descr_id[$key]] = $tbl;
     }
 }
示例#6
0
 /**
  * Class costructor
  * @param resource &$db reference to database handler
  */
 function __construct(&$db)
 {
     if (!is_object($db)) {
         $msg = __METHOD__ . ' :: FATAL Error $db IS NOT AN Object';
         throw new Exception($msg);
     }
     parent::__construct();
     $this->db =& $db;
     $this->object_table = $this->tables['nodes_hierarchy'];
     $this->node_tables = $this->node_tables_by['name'];
     $this->node_descr_id = array_flip($this->node_types);
     foreach ($this->node_tables_by['name'] as $key => $tbl) {
         $this->node_tables_by['id'][$this->node_descr_id[$key]] = $tbl;
     }
     $nodeCodeId = array_flip($this->node_types);
     $this->nodeWithoutClass[$nodeCodeId['requirement_spec_revision']] = 'deleted when reqspec is deleted';
 }
 /** 
  * Class constructor
  *
  * @param integer $dbID (optional) the database identifier
  */
 function __construct($dbID = null)
 {
     parent::__construct();
     $this->dbID = $dbID;
     $this->detailLevel = self::TLOBJ_O_GET_DETAIL_FULL;
 }
示例#8
0
 /** 
  * class constructor 
  * 
  * @param resource &$db reference to database handler
  **/
 function milestone_mgr(&$db)
 {
     parent::__construct();
     $this->db =& $db;
 }
 /**
  * Class constructor
  * 
  * @param resource &$db reference to the database handler
  */
 function __construct(&$db)
 {
     parent::__construct();
     $this->db =& $db;
     $this->tree_manager = new tree($this->db);
     $cfConfig = config_get('custom_fields');
     $this->sizes = $cfConfig->sizes;
     if (property_exists($cfConfig, 'types') && !is_null($cfConfig->types)) {
         $this->custom_field_types += $cfConfig->types;
         ksort($this->custom_field_types);
     }
     if (property_exists($cfConfig, 'possible_values_cfg') && !is_null($cfConfig->possible_values_cfg)) {
         $this->possible_values_cfg += $cfConfig->possible_values_cfg;
     }
     $this->object_table = $this->tables["custom_fields"];
     $this->max_length_value = $cfConfig->max_length;
     $this->max_length_possible_values = $this->max_length_value;
     $this->locations = $this->getLocations();
 }
示例#10
0
 public function __construct()
 {
     parent::__construct();
 }