Пример #1
0
 /**
  * Creates a new instance of this processor.
  *
  * @param   string[] true
  * @param   string[] false
  * @param   text.csv.CellProcessor if omitted, no further processing will be done
  */
 public function __construct($true = ['true', '1', 'Y'], $false = ['false', '0', 'N'], CellProcessor $next = null)
 {
     parent::__construct($next);
     $this->true = $true;
     $this->false = $false;
 }
Пример #2
0
 /**
  * Creates a new instance of this processor.
  *
  * @param   lang.XPClass<? extends lang.Enum> enum
  * @param   text.csv.CellProcessor if omitted, no further processing will be done
  */
 public function __construct(\lang\XPClass $enum, CellProcessor $next = null)
 {
     parent::__construct($next);
     $this->enum = $enum;
 }
Пример #3
0
 /**
  * Creates a new bool formatter
  *
  * @param   string true
  * @param   string false
  * @param   text.csv.CellProcessor if omitted, no further processing will be done
  */
 public function __construct($true = 'true', $false = 'false', CellProcessor $next = null)
 {
     parent::__construct($next);
     $this->true = $true;
     $this->false = $false;
 }
Пример #4
0
 /**
  * Creates a new date formatter
  *
  * @see     xp://util.Date#toString for format string composition
  * @param   string format
  * @param   text.csv.CellProcessor if omitted, no further processing will be done
  */
 public function __construct($format, CellProcessor $next = null)
 {
     parent::__construct($next);
     $this->format = $format;
 }
Пример #5
0
 /**
  * Creates a new instance of this processor.
  *
  * @param   rdbms.finder.FinderMethod
  * @param   rdbms.Criteria c if omitted, the peer's primary key is used
  * @param   text.csv.CellProcessor if omitted, no further processing will be done
  */
 public function __construct(FinderMethod $method, CellProcessor $next = null)
 {
     parent::__construct($next);
     $this->method = $method;
 }