Beispiel #1
0
 function __construct(IO $object, STREAMHandler $next = NULL, $flags = 0)
 {
     if (!$object->output) {
         $this->filename = false;
     } elseif (is_string($object->output)) {
         $this->filename = $object->output;
     } else {
         throw new ADEIException(translate("Invalid IO object is passed to the constructor of STREAMFilemodeConverter. Could not guess output file name."));
     }
     parent::__construct($object, $next, $flags);
 }
Beispiel #2
0
 function __construct($object = NULL, STREAMHandler $next = NULL, $flags = 0)
 {
     if (is_object($object)) {
         if (!$object || $object instanceof STREAMObjectInterface) {
             parent::__construct($object, $next, $flags);
         } else {
             throw new ADEIException(translate("Argument 1 passed to STREAMOutput constructor must implement STREAMObjectInterface, the '%s' is supplied", get_class($object)));
         }
     } else {
         parent::__construct(new IO($object), $next, $flags);
     }
 }
Beispiel #3
0
 function __construct(FILTER $object, STREAMHandler $next = NULL, $flags = 0)
 {
     parent::__construct($object, $next, $flags);
     $this->joiner = $this->object->IsJoiner();
 }