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; }
/** * @param int $ptID * @return PageTheme */ public function getByID($ptID) { $where = 'ptID = ?'; $args = array($ptID); $pt = PageTheme::populateThemeQuery($where, $args); return $pt; }