parsePanels($panels, $view); } function parsePanels($panels, $view) { return $panels; } function isCustomField($mixed) { if(is_array($mixed) && isset($mixed['name']) && preg_match('/.*?_c$/s', $mixed['name'])) { return true; } else if(!is_array($mixed) && isset($mixed) && preg_match('/.*?_c$/s', $mixed)) { return true; } return false; } function matches($mixed, $regExp) { if(is_array($mixed) && isset($mixed['name']) && preg_match($regExp, $mixed['name'])) { return true; } else if(!is_array($mixed) && isset($mixed) && preg_match($regExp, $mixed)) { return true; } return false; } function getMatch($mixed, $regExp) { if(is_array($mixed) && isset($mixed['name']) && preg_match($regExp, $mixed['name'], $matches)) { return $matches; } else if(!is_array($mixed) && isset($mixed) && preg_match($regExp, $mixed, $matches)) { return $matches; } return null; } } ?>