Overview

Namespaces

  • Sleepy
  • Module
    • Authentication
    • CSV
    • DB
    • FormBuilder
    • FSDB
    • IP2Country
    • Mailer
    • MobiDetect
    • Navigation
    • StaticCache
  • PHP

Classes

  • Debug
  • Hook
  • Router
  • SM
  • Template

Exceptions

  • RouteNotFound
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Class SM

Provides sleepyMUSTACHE core bootstrap functionality

Usage

\Sleepy\SM::initialize();

Changelog

Version 1.1

  • Updated private previx (_) for consistency
  • Updated documentation
  • Added teamsite fixes

Version 1.0

  • Initial commit
Namespace: Sleepy
License: http://opensource.org/licenses/MIT
Author: Jaime A. Rodriguez hi.i.am.jaime@gmail.com
Version: 1.1
Date: July 18, 2016
Located at class.sm.php
Methods summary
private
# __clone( )

Prevent class from being cloned

Prevent class from being cloned

private
# __construct( )

The constructor is private to ensure we only have one sleepy_preprocess and sleepy_postprocess hooks.

The constructor is private to ensure we only have one sleepy_preprocess and sleepy_postprocess hooks.

public
# __destruct( )
public static
# initialize( )

Initialized the SM class

Initialized the SM class

public static boolean
# isLive( )

Checks if we are in the live environment

Checks if we are in the live environment

Returns

boolean
True if we are live
public static boolean
# isStage( )

Checks if we are in the staging environment

Checks if we are in the staging environment

Returns

boolean
True if we are in the staging environment
public static boolean
# isDev( )

Checks if we are in the development environment

Checks if we are in the development environment

Returns

boolean
True if we are in in the development environment
public static boolean
# isENV( string $str )

Checks if the current site matches a URL

Checks if the current site matches a URL

Parameters

$str
The URL to match with current site

Returns

boolean
true if there was a match
Properties summary
private static $_instance
#
public static boolean $is_initialized
# false
sleepyMUSTACHE v.0.8 API documentation generated by ApiGen