mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 13:11:31 +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) { /* {{{ */
|
public function callHook($hook) { /* {{{ */
|
||||||
$tmps = array();
|
$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));
|
$tmp = explode('_', get_class($this));
|
||||||
$tmps[] = $tmp[2];
|
$tmps[] = $tmp[2];
|
||||||
foreach(class_parents($this) as $pc) {
|
foreach(class_parents($this) as $pc) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user