/** * Constructor: Load all parameters into member variables. * * @param DB_Base $db Database where the field is. * @param array $opts Parameters for the object, as 'var' => 'value'. */ function FT_DateTime(&$db, $opts = array()) { global $vortex_msgs; parent::FT_Base($db, $opts); if (is_null($this->format)) { switch ($this->type) { case FT_DATE: $this->format = $vortex_msgs['ft_date']; break; case FT_TIME: $this->format = $vortex_msgs['ft_time']; break; case FT_DATETIME: $this->format = $vortex_msgs['ft_datetime']; break; } } }
/** * Constructor: Load all parameters into member variables. * * @param DB_Base $db Database where the field is. * @param array $opts Parameters for the object, as 'var' => 'value'. */ function FT_List(&$db, $opts = array()) { parent::FT_Base($db, $opts); is_null($this->rel_order) and $this->rel_order = $this->rel_label; }