Пример #1
0
 protected function createObject($path, $throwException = true)
 {
     $options = array('throwException' => $throwException);
     $factory = new ReaderFactory();
     return $factory->createFileReader($path, $options);
     return new FileReader($path, array('throwException' => $throwException));
 }
 protected function createObject($path, $format, $type = null, $throwException = true)
 {
     $options = array('throwException' => $throwException);
     $factory = new ReaderFactory();
     return $factory->createGenericFileLineReader($path, $format, $type = null, $options);
 }
 protected function createObject($path, $format, $type = null, array $options = array())
 {
     $factory = new ReaderFactory();
     return $factory->createGenericLineReader($path, $format, $type, $options);
 }
Пример #4
0
 protected function createObject($path, array $options = array())
 {
     $factory = new ReaderFactory();
     return $factory->createLineReader($path, $options);
 }