mirror of
				https://github.com/Mibew/mibew.git
				synced 2025-11-04 12:25:11 +03:00 
			
		
		
		
	Rename "StyleInterface::name" method to "getName"
This commit is contained in:
		
							parent
							
								
									2b2139687a
								
							
						
					
					
						commit
						75703ecadd
					
				@ -60,7 +60,7 @@ abstract class AbstractStyle
 | 
			
		||||
     *
 | 
			
		||||
     * @return string Name of the style
 | 
			
		||||
     */
 | 
			
		||||
    public function name()
 | 
			
		||||
    public function getName()
 | 
			
		||||
    {
 | 
			
		||||
        return $this->styleName;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -65,7 +65,7 @@ class ChatStyle extends AbstractStyle implements StyleInterface
 | 
			
		||||
     */
 | 
			
		||||
    public function getFilesPath()
 | 
			
		||||
    {
 | 
			
		||||
        return 'styles/dialogs/' . $this->name();
 | 
			
		||||
        return 'styles/dialogs/' . $this->getName();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
@ -86,7 +86,7 @@ class ChatStyle extends AbstractStyle implements StyleInterface
 | 
			
		||||
        $data['currentLocale'] = CURRENT_LOCALE;
 | 
			
		||||
        $data['rtl'] = (getlocal("localedirection") == 'rtl');
 | 
			
		||||
        $data['stylePath'] = MIBEW_WEB_ROOT . '/' . $this->getFilesPath();
 | 
			
		||||
        $data['styleName'] = $this->name();
 | 
			
		||||
        $data['styleName'] = $this->getName();
 | 
			
		||||
 | 
			
		||||
        echo($this->templateEngine->render($template_name, $data));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -33,7 +33,7 @@ class InvitationStyle extends AbstractStyle implements StyleInterface
 | 
			
		||||
     */
 | 
			
		||||
    public function getFilesPath()
 | 
			
		||||
    {
 | 
			
		||||
        return 'styles/invitations/' . $this->name();
 | 
			
		||||
        return 'styles/invitations/' . $this->getName();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
 | 
			
		||||
@ -65,7 +65,7 @@ class PageStyle extends AbstractStyle implements StyleInterface
 | 
			
		||||
     */
 | 
			
		||||
    public function getFilesPath()
 | 
			
		||||
    {
 | 
			
		||||
        return 'styles/pages/' . $this->name();
 | 
			
		||||
        return 'styles/pages/' . $this->getName();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
@ -87,7 +87,7 @@ class PageStyle extends AbstractStyle implements StyleInterface
 | 
			
		||||
        $data['currentLocale'] = CURRENT_LOCALE;
 | 
			
		||||
        $data['rtl'] = (getlocal("localedirection") == 'rtl');
 | 
			
		||||
        $data['stylePath'] = MIBEW_WEB_ROOT . '/' . $this->getFilesPath();
 | 
			
		||||
        $data['styleName'] = $this->name();
 | 
			
		||||
        $data['styleName'] = $this->getName();
 | 
			
		||||
 | 
			
		||||
        echo($this->templateEngine->render($template_name, $data));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -74,7 +74,7 @@ interface StyleInterface
 | 
			
		||||
     *
 | 
			
		||||
     * @return string Name of the style
 | 
			
		||||
     */
 | 
			
		||||
    public function name();
 | 
			
		||||
    public function getName();
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Renders template file to HTML and send it to the output
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user