Exemplo n.º 1
0
    // {{{ public static function setupGettext()
    public static function setupGettext()
    {
        $path = '@DATA-DIR@/Building/locale';
        if (substr($path, 0, 1) === '@') {
            $path = __DIR__ . '/../locale';
        }
        bindtextdomain(self::GETTEXT_DOMAIN, $path);
        bind_textdomain_codeset(self::GETTEXT_DOMAIN, 'UTF-8');
    }
    // }}}
    // {{{ private function __construct()
    /**
     * Don't allow instantiation of the Building object
     *
     * This class contains only static methods and should not be instantiated.
     */
    private function __construct()
    {
    }
}
Building::setupGettext();
SiteViewFactory::addPath('Building/views');
SiteViewFactory::registerView('building-block-audio', 'BuildingBlockAudioView');
SiteViewFactory::registerView('building-block-video', 'BuildingBlockVideoView');
SiteViewFactory::registerView('building-block-image', 'BuildingBlockImageView');
SiteViewFactory::registerView('building-block-xhtml', 'BuildingBlockXHTMLView');
SiteViewFactory::registerView('building-block-attachment', 'BuildingBlockAttachmentView');
SiteViewFactory::registerView('building-block', 'BuildingBlockCompositeView');
SiteViewFactory::registerView('building-block-admin', 'BuildingBlockAdminCompositeView');
SwatUI::mapClassPrefixToPath('Building', 'Building');