| @@ -26,35 +26,35 @@ | ||
| 26 | 26 | |
| 27 | 27 | $data = [ | 
| 28 | 28 |              Relation::EQUAL => function ($field, $value) { | 
| 29 | - return $field . "=" . $value; | |
| 29 | + return $field . "=" . $value; | |
| 30 | 30 | }, | 
| 31 | 31 | |
| 32 | 32 |              Relation::GREATER_THAN => function ($field, $value) { | 
| 33 | - return $field . ">" . $value; | |
| 33 | + return $field . ">" . $value; | |
| 34 | 34 | }, | 
| 35 | 35 | |
| 36 | 36 |              Relation::LESS_THAN => function ($field, $value) { | 
| 37 | - return $field . "<" . $value; | |
| 37 | + return $field . "<" . $value; | |
| 38 | 38 | }, | 
| 39 | 39 | |
| 40 | 40 |              Relation::GREATER_OR_EQUAL_THAN => function ($field, $value) { | 
| 41 | - return $field . ">=" . $value; | |
| 41 | + return $field . ">=" . $value; | |
| 42 | 42 | }, | 
| 43 | 43 | |
| 44 | 44 |              Relation::LESS_OR_EQUAL_THAN => function ($field, $value) { | 
| 45 | - return $field . "<=" . $value; | |
| 45 | + return $field . "<=" . $value; | |
| 46 | 46 | }, | 
| 47 | 47 | |
| 48 | 48 |              Relation::NOT_EQUAL => function ($field, $value) { | 
| 49 | - return $field . "!=" . $value; | |
| 49 | + return $field . "!=" . $value; | |
| 50 | 50 | }, | 
| 51 | 51 | |
| 52 | 52 |              Relation::STARTS_WITH => function ($field, $value) { | 
| 53 | - return " starts-with($field, $value) "; | |
| 53 | + return " starts-with($field, $value) "; | |
| 54 | 54 | }, | 
| 55 | 55 | |
| 56 | 56 |              Relation::CONTAINS => function ($field, $value) { | 
| 57 | - return " contains($field, $value) "; | |
| 57 | + return " contains($field, $value) "; | |
| 58 | 58 | }, | 
| 59 | 59 | ]; | 
| 60 | 60 | |
| @@ -13,7 +13,6 @@ discard block | ||
| 13 | 13 | * Anydataset files have extension ".anydata.xml" and have many classes to put and get data into anydataset xml file. | 
| 14 | 14 | * Anydataset class just read and write files. To search elements you need use AnyIterator | 
| 15 | 15 | * and IteratorFilter. Each row have a class Row. | 
| 16 | - | |
| 17 | 16 | * XML Structure | 
| 18 | 17 | * <code> | 
| 19 | 18 | * <anydataset> | 
| @@ -28,17 +27,14 @@ discard block | ||
| 28 | 27 | * </row> | 
| 29 | 28 | * </anydataset> | 
| 30 | 29 | * </code> | 
| 31 | - | |
| 32 | 30 | * How to use: | 
| 33 | 31 | * <code> | 
| 34 | 32 | * $any = new AnyDataset(); | 
| 35 | 33 | * </code> | 
| 36 | - | |
| 37 | 34 | * | 
| 38 | 35 | *@see Row | 
| 39 | 36 | * @see AnyIterator | 
| 40 | 37 | * @see IteratorFilter | 
| 41 | - | |
| 42 | 38 | */ | 
| 43 | 39 | class AnyDataset | 
| 44 | 40 |  { |