mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
read property viewAliasName
This commit is contained in:
parent
f275ea1927
commit
3d15736772
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user