コード例 #1
0
ファイル: DataReader.php プロジェクト: kisma/kisma
 /**
  * @param \PDOStatement $statement
  */
 public function __construct(\PDOStatement $statement)
 {
     parent::__construct();
     if (null !== $statement) {
         $this->_statement = $statement;
     }
 }
コード例 #2
0
ファイル: BaseProviderConfig.php プロジェクト: surfyst/oasys
 /**
  * @param array $settings
  */
 public function __construct($settings = array())
 {
     parent::__construct($settings);
     //	Load default if one exists and none passed in...
     $this->_schema = $this->_schema ?: static::loadDefaultSchema($this->_type);
 }
コード例 #3
0
ファイル: Map.php プロジェクト: kisma/kisma
 /**
  * @param array $mappings Initial mappings, if any
  *
  * @throws \InvalidArgumentException
  */
 public function __construct(array $mappings = array())
 {
     parent::__construct();
     $this->_map = $mappings;
 }
コード例 #4
0
ファイル: LineReader.php プロジェクト: kisma/kisma
 /**
  * @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.');
     }
 }
コード例 #5
0
ファイル: FileSystem.php プロジェクト: kisma/kisma
 /**
  * @param array|object $fileName
  *
  * @return \Kisma\Core\Utility\FileSystem
  */
 public function __construct($fileName)
 {
     parent::__construct();
     $this->_fileName = $fileName;
     $this->open();
 }