@@ 3418-3420 (lines=3) @@ | ||
3415 | $pluginType += Core::BLOCK_PLUGIN; |
|
3416 | } |
|
3417 | $interfaces = class_implements(Core::NAMESPACE_PLUGINS_BLOCKS . 'Plugin' . Core::toCamelCase($name)); |
|
3418 | if (in_array('Dwoo\ICompilable', $interfaces) !== false || in_array('Dwoo\ICompilable\Block', $interfaces) !== false) { |
|
3419 | $pluginType |= Core::COMPILABLE_PLUGIN; |
|
3420 | } |
|
3421 | } // Class functions plugin |
|
3422 | elseif (class_exists(Core::NAMESPACE_PLUGINS_FUNCTIONS . 'Plugin' . Core::toCamelCase($name)) !== false) { |
|
3423 | $pluginType = Core::FUNC_PLUGIN + Core::CLASS_PLUGIN; |
|
@@ 3425-3427 (lines=3) @@ | ||
3422 | elseif (class_exists(Core::NAMESPACE_PLUGINS_FUNCTIONS . 'Plugin' . Core::toCamelCase($name)) !== false) { |
|
3423 | $pluginType = Core::FUNC_PLUGIN + Core::CLASS_PLUGIN; |
|
3424 | $interfaces = class_implements(Core::NAMESPACE_PLUGINS_FUNCTIONS . 'Plugin' . Core::toCamelCase($name)); |
|
3425 | if (in_array('Dwoo\ICompilable', $interfaces) !== false || in_array('Dwoo\ICompilable\Block', $interfaces) !== false) { |
|
3426 | $pluginType |= Core::COMPILABLE_PLUGIN; |
|
3427 | } |
|
3428 | } // Class without namespace |
|
3429 | elseif (class_exists('Plugin' . Core::toCamelCase($name)) !== false) { |
|
3430 | $pluginType = Core::CLASS_PLUGIN; |
|
@@ 3435-3437 (lines=3) @@ | ||
3432 | $pluginType += Core::BLOCK_PLUGIN; |
|
3433 | } |
|
3434 | $interfaces = class_implements('Plugin' . Core::toCamelCase($name)); |
|
3435 | if (in_array('Dwoo\ICompilable', $interfaces) !== false || in_array('Dwoo\ICompilable\Block', $interfaces) !== false) { |
|
3436 | $pluginType |= Core::COMPILABLE_PLUGIN; |
|
3437 | } |
|
3438 | } // Function plugin (with/without namespaces) |
|
3439 | elseif (function_exists(Core::NAMESPACE_PLUGINS_FUNCTIONS . 'Plugin' . Core::toCamelCase ($name)) !== |
|
3440 | false || function_exists('Plugin' . Core::toCamelCase($name)) !== false) { |