UrlType::getName PHP Method

getName() public method

Return the name of this URLType.
public getName ( ) : string
return string
    public function getName()
    {
        $translator = \Zend_Registry::get('container')->getService('translator');
        $name = $this->m_data['Name'];
        switch ($name) {
            case "short names":
                return $translator->trans("short names", array(), 'api');
            case "template path":
                return $translator->trans("template path", array(), 'api');
            default:
                return "";
        }
    }

Usage Example

Exemplo n.º 1
0
/is_shown.png" border="0">
            <?php 
            } else {
                ?>
                <img src="<?php 
                echo $Campsite["ADMIN_IMAGE_BASE_URL"];
                ?>
/is_hidden.png" border="0">
            <?php 
            }
            ?>
        </TD>
        <TD align="center">
            <?php 
            $urlTypeObj = new UrlType($pub->getUrlTypeId());
            p(htmlspecialchars($urlTypeObj->getName()));
            ?>
&nbsp;
        </TD>
        <TD ALIGN="CENTER">
            <A HREF="/<?php 
            p($ADMIN);
            ?>
/pub/edit.php?Pub=<?php 
            p($pub->getPublicationId());
            ?>
"><img src="<?php 
            echo $Campsite["ADMIN_IMAGE_BASE_URL"];
            ?>
/configure.png" alt="<?php 
            putGS("Configure");