@@ 3186-3194 (lines=9) @@ | ||
3183 | * @param string $condition_query_param_key |
|
3184 | * @return string |
|
3185 | */ |
|
3186 | private function _remove_stars_and_anything_after_from_condition_query_param_key($condition_query_param_key){ |
|
3187 | $pos_of_star = strpos($condition_query_param_key, '*'); |
|
3188 | if($pos_of_star === FALSE){ |
|
3189 | return $condition_query_param_key; |
|
3190 | }else{ |
|
3191 | $condition_query_param_sans_star = substr($condition_query_param_key, 0, $pos_of_star); |
|
3192 | return $condition_query_param_sans_star; |
|
3193 | } |
|
3194 | } |
|
3195 | ||
3196 | ||
3197 |
@@ 136-144 (lines=9) @@ | ||
133 | return $query_param_for_models; |
|
134 | } |
|
135 | ||
136 | public static function remove_stars_and_anything_after_from_condition_query_param_key( $condition_query_param_key ) { |
|
137 | $pos_of_star = strpos($condition_query_param_key, '*'); |
|
138 | if($pos_of_star === FALSE){ |
|
139 | return $condition_query_param_key; |
|
140 | }else{ |
|
141 | $condition_query_param_sans_star = substr($condition_query_param_key, 0, $pos_of_star); |
|
142 | return $condition_query_param_sans_star; |
|
143 | } |
|
144 | } |
|
145 | ||
146 | /** |
|
147 | * Takes the input parameter and finds the model field that it indicates. |