public function __construct()
 {
     if (!CSession::isAuth()) {
         $this->redirectNoAccess();
     }
     $this->_smartyEnabled = true;
     $this->setPageTitle("Управление печатью по шаблону");
     parent::__construct();
 }
 /**
  * Текущий бин состояния
  *
  * @return CStatefullBean
  */
 public static function getStatefullBean()
 {
     if (is_null(self::$_statefullBean)) {
         self::$_statefullBean = new CStatefullBean();
         if (self::$_statefullBeanId != "") {
             $bean = CApp::getApp()->beans->getStatefullBean(self::$_statefullBeanId);
             if (!is_null($bean)) {
                 self::$_statefullBean = $bean;
             }
         }
     }
     return self::$_statefullBean;
 }
 public function __construct()
 {
     if (!CSession::isAuth()) {
         $action = CRequest::getString("action");
         if ($action == "") {
             $action = "index";
         }
         if (!in_array($action, $this->allowedAnonymous)) {
             $this->redirectNoAccess();
         }
     }
     $this->_smartyEnabled = true;
     $this->setPageTitle("Рабочие программы");
     parent::__construct();
 }