Nos

class Nos\Nos

Provides static methods useful in Novius OS.

Entry points

property Nos\Nos::$entry_point

The Novius OS entry point. Equal to one of the following constants.

constant Nos\Nos::ENTRY_POINT_ADMIN
constant Nos\Nos::ENTRY_POINT_FRONT
constant Nos\Nos::ENTRY_POINT_404
constant Nos\Nos::ENTRY_POINT_INSTALL

New in version 0.2.0.1.

::main_controller()

static Nos\Nos::main_controller
Returns:Instance of the main controller.

::hmvc()

static Nos\Nos::hmvc($where, $args = null)
Parameters:
  • $where (mixed) – Route for the request.
  • $args (array) – The method parameters.

Executes an HMVC request.

::parse_wysiwyg()

static Nos\Nos::parse_wysiwyg($content)
Parameters:
Returns:

Prepare wysiwyg content for display.

Replace enhancers by their content.
Replace Model_Page and Model_Media IDs by theirs URLs
Add URL prefix on anchors (to work with <base href="">).