Exemplo n.º 1
0
 /**
  * @param \PDOStatement $statement
  */
 public function __construct(\PDOStatement $statement)
 {
     parent::__construct();
     if (null !== $statement) {
         $this->_statement = $statement;
     }
 }
Exemplo n.º 2
0
 public function __destruct()
 {
     Oasys::getStore()->merge($this->toArray());
     parent::__destruct();
 }
Exemplo n.º 3
0
Arquivo: Map.php Projeto: kisma/kisma
 /**
  * @param array $mappings Initial mappings, if any
  *
  * @throws \InvalidArgumentException
  */
 public function __construct(array $mappings = array())
 {
     parent::__construct();
     $this->_map = $mappings;
 }
Exemplo n.º 4
0
 /**
  * @param array $settings
  *
  * @throws \InvalidArgumentException
  */
 public function __construct($settings = array())
 {
     if (is_string($settings)) {
         $settings = array('fileName' => $settings);
     }
     parent::__construct($settings);
     if (null === $this->_fileName) {
         throw new \InvalidArgumentException('No "fileName" specified.');
     }
 }
Exemplo n.º 5
0
 /**
  * @param array|object $fileName
  *
  * @return \Kisma\Core\Utility\FileSystem
  */
 public function __construct($fileName)
 {
     parent::__construct();
     $this->_fileName = $fileName;
     $this->open();
 }