cleaned up construct

This commit is contained in:
William Knauss
2014-02-05 18:24:41 -05:00
parent 9e6fdbb42a
commit e16d818d07

View File

@@ -174,10 +174,21 @@ class parseCSV {
* @return nothing
*/
function parseCSV ($input = null, $offset = null, $limit = null, $conditions = null) {
if ( $offset !== null ) $this->offset = $offset;
if ( $limit !== null ) $this->limit = $limit;
if ( count($conditions) > 0 ) $this->conditions = $conditions;
if ( !empty($input) ) $this->parse($input);
if ($offset!==null) {
$this->offset = $offset;
}
if ($limit!==null) {
$this->limit = $limit;
}
if (count($conditions)>0) {
$this->conditions = $conditions;
}
if (!empty($input)) {
$this->parse($input);
}
}