content\controllers\Edit::__construct PHP Method

__construct() public method

public __construct ( $app = null )
    function __construct($app = null)
    {
        if (!is_object($this->app)) {
            if (is_object($app)) {
                $this->app = $app;
            } else {
                $this->app = mw();
            }
        }
        $this->views_dir = dirname(__DIR__) . DS . 'views' . DS;
        $this->provider = $this->app->content_manager;
        $this->category_provider = $this->app->category_manager;
        $is_admin = $this->app->user_manager->admin_access();
    }