public function GatherContentFunctions::foreachSafe in GatherContent 7.2
Checks if variable is an array and array length is more than 0.
6 calls to GatherContentFunctions::foreachSafe()
- GatherContentCurl::generateFormSettings in includes/
curl.inc - Generate page settings for pages_import page.
- GatherContentCurl::getFieldConfig in includes/
curl.inc - Process config field to return field array.
- GatherContentCurl::getFiles in includes/
curl.inc - Get file array for a specific page.
- GatherContentCurl::getProjectsDropdown in includes/
curl.inc - Get project dropdown.
- GatherContentCurl::getStateDropdown in includes/
curl.inc - Get workflow state dropdown.
File
- includes/
functions.inc, line 39 - Class containing general functions used throughout the importing. Extended by GatherContentCurl.
Class
- GatherContentFunctions
- @file Class containing general functions used throughout the importing. Extended by GatherContentCurl.
Code
public function foreachSafe($arr) {
if (is_array($arr) && count($arr) > 0) {
return TRUE;
}
return FALSE;
}