Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge remote-tracking branch 'dstockto/cs_tz_model'

  • Loading branch information...
commit 7f1534c2f229ef1e86670524218c763c8bbfbc6b 2 parents 4f479e9 + 598a404
@lornajane lornajane authored
Showing with 67 additions and 14 deletions.
  1. +67 −14 src/system/application/models/tz_model.php
View
81 src/system/application/models/tz_model.php
@@ -1,38 +1,91 @@
<?php
+/**
+ * Timezone model
+ *
+ * PHP version 5
+ *
+ * @category Joind.in
+ * @package Configuration
+ * @copyright 2009 - 2012 Joind.in
+ * @license http://github.com/joindin/joind.in/blob/master/doc/LICENSE JoindIn
+ */
-class Tz_model extends Model {
+/**
+ * Timezone model
+ *
+ * PHP version 5
+ *
+ * @category Joind.in
+ * @package Configuration
+ * @copyright 2009 - 2012 Joind.in
+ * @license http://github.com/joindin/joind.in/blob/master/doc/LICENSE JoindIn
+ */
+class Tz_model extends Model
+{
- function Tz_model() {
- parent::Model();
- }
- //--------------------
- function getContInfo($cid=null) {
+ /**
+ * Retrieve continent information
+ *
+ * @param integre $cid Continent id
+ *
+ * @return mixed
+ */
+ public function getContInfo($cid = null)
+ {
$this->db->select('cont')
->distinct()
->from('tz')
->order_by('cont asc');
- $q=$this->db->get();
+ $q = $this->db->get();
+
return $q->result();
}
- function getAreaInfo($cont) {
+
+ /**
+ * Retrieves area information
+ *
+ * @param string $cont Continent name
+ *
+ * @return mixed
+ */
+ public function getAreaInfo($cont)
+ {
$this->db->select('area')
->distinct()
- ->where("cont='".$cont."'")
+ ->where("cont='" . $cont . "'")
->from('tz')
->order_by('cont asc');
- $q=$this->db->get();
+ $q = $this->db->get();
+
return $q->result();
}
- function getOffsetInfo() {
+
+ /**
+ * Retrieves timezone offset information
+ *
+ * @return mixed
+ */
+ public function getOffsetInfo()
+ {
$this->db->select('offset')
->distinct()
->from('tz')
->order_by('offset asc');
- $q=$this->db->get();
+ $q = $this->db->get();
+
return $q->result();
}
- function getTzInfo($tid=null) {
-
+
+ /**
+ * Does nothing. Literally blank
+ *
+ * @param null $tid Void
+ *
+ * @return void
+ */
+ public function getTzInfo($tid = null)
+ {
+
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.