foreach ($files as $file) {
self::read($file, self::$_items);
}
foreach ($files as $file) {
self::read($file, self::$_items);
}
CRM_Core_BAO_SchemaHandler::checkIfFieldExists('civicrm_menu', 'module_data', FALSE)
) {
// Move unrecognized fields to $module_data.
CRM_Core_BAO_SchemaHandler::checkIfFieldExists('civicrm_menu', 'module_data', FALSE)
) {
// Move unrecognized fields to $module_data.
foreach (array_keys($item) as $key) {
if (!isset($daoFields[$key])) {
$module_data[$key] = $item[$key];
foreach (array_keys($item) as $key) {
if (!isset($daoFields[$key])) {
$module_data[$key] = $item[$key];
'extra' => $item['extra'] ?? NULL,
);
if (!array_key_exists($item['adminGroup'], $values)) {
'extra' => $item['extra'] ?? NULL,
);
if (!array_key_exists($item['adminGroup'], $values)) {
}
$values[$item['adminGroup']]['fields']["{weight}.{$item['title']}"] = $value;
$values[$item['adminGroup']]['component_id'] = $item['component_id'];
}
$values[$item['adminGroup']]['fields']["{weight}.{$item['title']}"] = $value;
$values[$item['adminGroup']]['component_id'] = $item['component_id'];
* The breadcrumb for this path
*/
public static function buildBreadcrumb(&$menu, $path) {
* The breadcrumb for this path
*/
public static function buildBreadcrumb(&$menu, $path) {
$pathElements = explode('/', $path);
array_pop($pathElements);
$pathElements = explode('/', $path);
array_pop($pathElements);
* @throws \CRM_Core_Exception
*/
public static function fillComponentIds(&$menu, $path) {
* @throws \CRM_Core_Exception
*/
public static function fillComponentIds(&$menu, $path) {
while (!empty($args)) {
$string = implode('/', $args);
$string = CRM_Core_DAO::escapeString($string);
while (!empty($args)) {
$string = implode('/', $args);
$string = CRM_Core_DAO::escapeString($string);
CRM_Core_DAO::storeValues($menu, self::$_menuCache[$menu->path]);
// Move module_data into main item.
CRM_Core_DAO::storeValues($menu, self::$_menuCache[$menu->path]);
// Move module_data into main item.
$elements = explode(',', $pathArgs);
foreach ($elements as $keyVal) {
$elements = explode(',', $pathArgs);
foreach ($elements as $keyVal) {