read property viewAliasName

This commit is contained in:
Uwe Steinmann 2021-04-23 06:55:10 +02:00
parent f275ea1927
commit 3d15736772

View File

@ -114,6 +114,12 @@ class SeedDMS_View_Common {
*/
public function callHook($hook) { /* {{{ */
$tmps = array();
/* the viewAliasName can be set in the view to specify a different name
* than extracted from the class name.
*/
if(property_exists($this, 'viewAliasName') && !empty($this->viewAliasName)) {
$tmps[] = $this->viewAliasName;
}
$tmp = explode('_', get_class($this));
$tmps[] = $tmp[2];
foreach(class_parents($this) as $pc) {