Пример #1
0
 /**
  * Sets whether to force "is_frontend" to return true or false. This can be used for situations where the
  * frontend controllers are not involved, e.g. API modules, unit testing or retrieving data programmatically.
  *
  * @param boolean $force
  */
 public static function set_force_is_frontend($force = true)
 {
     self::$force_is_frontend = $force;
 }