コード例 #1
0
ファイル: AsBool.class.php プロジェクト: xp-framework/csv
 /**
  * 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
ファイル: AsEnum.class.php プロジェクト: xp-framework/csv
 /**
  * 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
ファイル: FormatBool.class.php プロジェクト: xp-framework/csv
 /**
  * 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
ファイル: FormatDate.class.php プロジェクト: xp-framework/csv
 /**
  * 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;
 }