function crumbs_InvokeAction_findForPath::__construct in Crumbs, the Breadcrumbs suite 6.2
1 call to crumbs_InvokeAction_findForPath::__construct()
1 method overrides crumbs_InvokeAction_findForPath::__construct()
File
- ./
crumbs.plugin_engine.inc, line 323
Class
Code
function __construct($path, $item) {
$this->_path = $path;
$this->_item = $item;
// Replace all characters with something that is allowed in method names.
// while avoiding false positives.
// Example: 'findParent__node_x()' should only match 'node/%',
// but not 'node-_' or 'node-x', or other exotic router paths.
// Special character router paths can not be matched by any method name,
// so you will need to use switch() or if/else on $item['path'].
$method_suffix = crumbs_build_method_suffix($item['path']);
if ($method_suffix !== FALSE) {
$this->_methods[] = $this->_method . '__' . $method_suffix;
}
$this->_methods[] = $this->_method;
}