Example #1
0
	public function getByID($ptID) {
		$pt = Cache::get('page_theme_by_id', $ptID);
		if ($pt instanceof PageTheme) {
			return $pt;
		}
		
		$where = 'ptID = ?';
		$args = array($ptID);
		$pt = PageTheme::populateThemeQuery($where, $args);
		Cache::set('page_theme_by_id', $ptID, $pt);
		return $pt;
	}
Example #2
0
 /**
  * @param int $ptID
  * @return PageTheme
  */
 public function getByID($ptID)
 {
     $where = 'ptID = ?';
     $args = array($ptID);
     $pt = PageTheme::populateThemeQuery($where, $args);
     return $pt;
 }