src/dbo/fields.php 1 location
|
@@ 248-260 (lines=13) @@
|
| 245 |
|
* <li>{@link ERROR_INCOMPLETE_FORM} - at least one of required field is empty</li> |
| 246 |
|
* </ul> |
| 247 |
|
*/ |
| 248 |
|
function field_validate ($field_name) |
| 249 |
|
{ |
| 250 |
|
debug_write_log(DEBUG_TRACE, '[field_validate]'); |
| 251 |
|
debug_write_log(DEBUG_DUMP, '[field_validate] $field_name = ' . $field_name); |
| 252 |
|
|
| 253 |
|
if (ustrlen($field_name) == 0) |
| 254 |
|
{ |
| 255 |
|
debug_write_log(DEBUG_NOTICE, '[field_validate] At least one required field is empty.'); |
| 256 |
|
return ERROR_INCOMPLETE_FORM; |
| 257 |
|
} |
| 258 |
|
|
| 259 |
|
return NO_ERROR; |
| 260 |
|
} |
| 261 |
|
|
| 262 |
|
/** |
| 263 |
|
* Validates 'Number' field information before creation or modification. |
src/dbo/filters.php 1 location
|
@@ 140-152 (lines=13) @@
|
| 137 |
|
* <li>{@link ERROR_INCOMPLETE_FORM} - at least one of required field is empty</li> |
| 138 |
|
* </ul> |
| 139 |
|
*/ |
| 140 |
|
function filter_validate ($filter_name) |
| 141 |
|
{ |
| 142 |
|
debug_write_log(DEBUG_TRACE, '[filter_validate]'); |
| 143 |
|
debug_write_log(DEBUG_DUMP, '[filter_validate] $filter_name = ' . $filter_name); |
| 144 |
|
|
| 145 |
|
if (ustrlen($filter_name) == 0) |
| 146 |
|
{ |
| 147 |
|
debug_write_log(DEBUG_NOTICE, '[filter_validate] At least one required field is empty.'); |
| 148 |
|
return ERROR_INCOMPLETE_FORM; |
| 149 |
|
} |
| 150 |
|
|
| 151 |
|
return NO_ERROR; |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
/** |
| 155 |
|
* Creates new filter. |
src/dbo/groups.php 1 location
|
@@ 215-227 (lines=13) @@
|
| 212 |
|
* <li>{@link ERROR_INCOMPLETE_FORM} - at least one of required field is empty</li> |
| 213 |
|
* </ul> |
| 214 |
|
*/ |
| 215 |
|
function group_validate ($group_name) |
| 216 |
|
{ |
| 217 |
|
debug_write_log(DEBUG_TRACE, '[group_validate]'); |
| 218 |
|
debug_write_log(DEBUG_DUMP, '[group_validate] $group_name = ' . $group_name); |
| 219 |
|
|
| 220 |
|
if (ustrlen($group_name) == 0) |
| 221 |
|
{ |
| 222 |
|
debug_write_log(DEBUG_NOTICE, '[group_validate] At least one required field is empty.'); |
| 223 |
|
return ERROR_INCOMPLETE_FORM; |
| 224 |
|
} |
| 225 |
|
|
| 226 |
|
return NO_ERROR; |
| 227 |
|
} |
| 228 |
|
|
| 229 |
|
/** |
| 230 |
|
* Creates new group. |
src/dbo/projects.php 1 location
|
@@ 142-154 (lines=13) @@
|
| 139 |
|
* <li>{@link ERROR_INCOMPLETE_FORM} - at least one of required field is empty</li> |
| 140 |
|
* </ul> |
| 141 |
|
*/ |
| 142 |
|
function project_validate ($project_name) |
| 143 |
|
{ |
| 144 |
|
debug_write_log(DEBUG_TRACE, '[project_validate]'); |
| 145 |
|
debug_write_log(DEBUG_DUMP, '[project_validate] $project_name = ' . $project_name); |
| 146 |
|
|
| 147 |
|
if (ustrlen($project_name) == 0) |
| 148 |
|
{ |
| 149 |
|
debug_write_log(DEBUG_NOTICE, '[project_validate] At least one required field is empty.'); |
| 150 |
|
return ERROR_INCOMPLETE_FORM; |
| 151 |
|
} |
| 152 |
|
|
| 153 |
|
return NO_ERROR; |
| 154 |
|
} |
| 155 |
|
|
| 156 |
|
/** |
| 157 |
|
* Creates new project. |
src/dbo/views.php 1 location
|
@@ 177-189 (lines=13) @@
|
| 174 |
|
* <li>{@link ERROR_INCOMPLETE_FORM} - at least one of required field is empty</li> |
| 175 |
|
* </ul> |
| 176 |
|
*/ |
| 177 |
|
function view_validate ($view_name) |
| 178 |
|
{ |
| 179 |
|
debug_write_log(DEBUG_TRACE, '[view_validate]'); |
| 180 |
|
debug_write_log(DEBUG_DUMP, '[view_validate] $view_name = ' . $view_name); |
| 181 |
|
|
| 182 |
|
if (ustrlen($view_name) == 0) |
| 183 |
|
{ |
| 184 |
|
debug_write_log(DEBUG_NOTICE, '[view_validate] At least one required field is empty.'); |
| 185 |
|
return ERROR_INCOMPLETE_FORM; |
| 186 |
|
} |
| 187 |
|
|
| 188 |
|
return NO_ERROR; |
| 189 |
|
} |
| 190 |
|
|
| 191 |
|
/** |
| 192 |
|
* Creates new view for specified user. |