@@ -72,20 +72,20 @@ discard block |
||
| 72 | 72 | |
| 73 | 73 | public function aw_eq($field, $value, $table_name = null, $bindname = null) |
| 74 | 74 | { |
| 75 | - return $this->aw_bind_field($table_name, $field, self::$OP_EQ, $value, $bindname); |
|
| 75 | + return $this->aw_bind_field($table_name, $field, self::$OP_EQ, $value, $bindname); |
|
| 76 | 76 | } |
| 77 | 77 | public function aw_gt($field, $value, $table_name = null, $bindname = null) |
| 78 | 78 | { |
| 79 | - return $this->aw_bind_field($table_name, $field, self::$OP_GT, $value, $bindname); |
|
| 79 | + return $this->aw_bind_field($table_name, $field, self::$OP_GT, $value, $bindname); |
|
| 80 | 80 | } |
| 81 | 81 | public function aw_lt($field, $value, $table_name = null, $bindname = null) |
| 82 | 82 | { |
| 83 | - return $this->aw_bind_field($table_name, $field, self::$OP_LT, $value, $bindname); |
|
| 83 | + return $this->aw_bind_field($table_name, $field, self::$OP_LT, $value, $bindname); |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | public function aw_gte($field, $value, $table_name = null, $bindname = null) |
| 87 | 87 | { |
| 88 | - return $this->aw_bind_field($table_name, $field, self::$OP_GTE, $value, $bindname); |
|
| 88 | + return $this->aw_bind_field($table_name, $field, self::$OP_GTE, $value, $bindname); |
|
| 89 | 89 | } |
| 90 | 90 | public function aw_lte($field, $value, $table_name = null, $bindname = null) |
| 91 | 91 | { |
@@ -184,10 +184,10 @@ discard block |
||
| 184 | 184 | } |
| 185 | 185 | |
| 186 | 186 | /** |
| 187 | - * @param array $filters_content with 2 indexes: 'term', the search string, 'fields', the search fields |
|
| 188 | - * @param $search_table String to filter |
|
| 189 | - * @param $filters_operator Object, inclusive or exclusive search |
|
| 190 | - */ |
|
| 187 | + * @param array $filters_content with 2 indexes: 'term', the search string, 'fields', the search fields |
|
| 188 | + * @param $search_table String to filter |
|
| 189 | + * @param $filters_operator Object, inclusive or exclusive search |
|
| 190 | + */ |
|
| 191 | 191 | public function aw_filter_content($filters_content, $search_table = null, $filters_operator = null) // sub array filters[$content] |
| 192 | 192 | { |
| 193 | 193 | if (!isset($filters_content['term']) || !isset($filters_content['fields'])) { |
@@ -74,17 +74,17 @@ discard block |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | - * loads row content from database, |
|
| 78 | - * |
|
| 79 | - * looks for primary key matching data in $dat_ass and sets the $load variable |
|
| 80 | - * $load stays null if |
|
| 81 | - * 1. not match is found in $dat_ass |
|
| 82 | - * 2. multiple records are returned |
|
| 83 | - * 3. no record is found |
|
| 84 | - * |
|
| 85 | - * @param Array $dat_ass an associative array containing primary key data matches |
|
| 86 | - * @return $this |
|
| 87 | - */ |
|
| 77 | + * loads row content from database, |
|
| 78 | + * |
|
| 79 | + * looks for primary key matching data in $dat_ass and sets the $load variable |
|
| 80 | + * $load stays null if |
|
| 81 | + * 1. not match is found in $dat_ass |
|
| 82 | + * 2. multiple records are returned |
|
| 83 | + * 3. no record is found |
|
| 84 | + * |
|
| 85 | + * @param Array $dat_ass an associative array containing primary key data matches |
|
| 86 | + * @return $this |
|
| 87 | + */ |
|
| 88 | 88 | public function load($dat_ass) |
| 89 | 89 | { |
| 90 | 90 | $pks = $this->table()->primary_keys_match($dat_ass); |
@@ -186,8 +186,8 @@ discard block |
||
| 186 | 186 | |
| 187 | 187 | //------------------------------------------------------------ type:data validation |
| 188 | 188 | /** |
| 189 | - * @return array containing all invalid data, indexed by field name, or empty if all valid |
|
| 190 | - */ |
|
| 189 | + * @return array containing all invalid data, indexed by field name, or empty if all valid |
|
| 190 | + */ |
|
| 191 | 191 | public function validate() : array |
| 192 | 192 | { |
| 193 | 193 | $errors = []; |
@@ -67,10 +67,10 @@ |
||
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | - * @return mixed the default value of a field |
|
| 71 | - * @return int for integer and boolean fields |
|
| 72 | - * @return null where no default is set |
|
| 73 | - */ |
|
| 70 | + * @return mixed the default value of a field |
|
| 71 | + * @return int for integer and boolean fields |
|
| 72 | + * @return null where no default is set |
|
| 73 | + */ |
|
| 74 | 74 | public function default() |
| 75 | 75 | { |
| 76 | 76 | $ret = $this->default_value; |