コード例 #1
0
ファイル: Session.php プロジェクト: khsk/ethnam
 /**
  *  Ethna_Plugin_Csrfのコンストラクタ
  *
  *  @access public
  *  @param  object  Ethna_Controller    $controller    コントローラオブジェクト
  */
 public function __construct($controller)
 {
     parent::__construct($controller);
     // オブジェクトの設定
     $this->session = $this->controller->getSession();
 }
コード例 #2
0
ファイル: Session.php プロジェクト: dqneo/ethnam
 /**
  *  Ethna_Plugin_Csrfのコンストラクタ
  *
  */
 public function __construct(Ethna_ContainerInterface $container)
 {
     parent::__construct($container);
     // オブジェクトの設定
     $this->session = $container->getSession();
 }