Ejemplo n.º 1
0
 /**
  * Constructor
  *
  * @param string $source
  * @throws Naf_Media_Exception
  */
 function __construct($command, $source)
 {
     parent::__construct($command);
     if (!is_file($source) || !is_readable($source)) {
         throw new Naf_Media_Exception("File is unreadable or does not exist");
     }
     $this->source = $source;
     $this->outputInfo = new Naf_Media_Info();
 }
Ejemplo n.º 2
0
 /**
  * Constructor
  *
  * @param string $command
  * @param string $source
  * @param string $tmpDir
  * @throws Naf_Media_Exception
  */
 function __construct($command, $source, $tmpDir = '/tmp')
 {
     parent::__construct($command);
     $this->source = $source;
     $this->tmpDir = $tmpDir;
 }