当前位置: 首页>>代码示例>>PHP>>正文


PHP org_tubepress_impl_classloader_ClassLoader::loadClasses方法代码示例

本文整理汇总了PHP中org_tubepress_impl_classloader_ClassLoader::loadClasses方法的典型用法代码示例。如果您正苦于以下问题:PHP org_tubepress_impl_classloader_ClassLoader::loadClasses方法的具体用法?PHP org_tubepress_impl_classloader_ClassLoader::loadClasses怎么用?PHP org_tubepress_impl_classloader_ClassLoader::loadClasses使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org_tubepress_impl_classloader_ClassLoader的用法示例。


在下文中一共展示了org_tubepress_impl_classloader_ClassLoader::loadClasses方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: class_exists

 * TubePress is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * TubePress is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with TubePress.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
class_exists('org_tubepress_impl_classloader_ClassLoader') || (require dirname(__FILE__) . '/../../../../impl/classloader/ClassLoader.class.php');
org_tubepress_impl_classloader_ClassLoader::loadClasses(array('org_tubepress_api_provider_ProviderCalculator', 'org_tubepress_spi_patterns_cor_Command'));
/**
 * Handles errors from YouTube and Vimeo.
 */
abstract class org_tubepress_impl_http_responsehandling_AbstractHttpErrorResponseHandler implements org_tubepress_spi_patterns_cor_Command
{
    /**
     * Execute the command.
     *
     * @param array $context An array of context elements (may be empty).
     *
     * @return boolean True if this command was able to handle the execution. False otherwise.
     */
    function execute($context)
    {
        $ioc = org_tubepress_impl_ioc_IocContainer::getInstance();
开发者ID:nidalhajaj,项目名称:tubepress,代码行数:31,代码来源:AbstractHttpErrorResponseHandler.class.php

示例2: class_exists

 * TubePress is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * TubePress is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with TubePress.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
class_exists('org_tubepress_impl_classloader_ClassLoader') || (require dirname(__FILE__) . '/../../../classloader/ClassLoader.class.php');
org_tubepress_impl_classloader_ClassLoader::loadClasses(array('org_tubepress_api_http_HttpRequestParameterService', 'org_tubepress_spi_options_ui_Field', 'org_tubepress_impl_options_ui_fields_AbstractField'));
/**
 * Displays a multi-select drop-down input.
 */
abstract class org_tubepress_impl_options_ui_fields_AbstractMultiSelectField extends org_tubepress_impl_options_ui_fields_AbstractField
{
    const TEMPLATE_VAR_DESCRIPTORS = 'org_tubepress_impl_options_ui_fields_AbstractMultiSelectField__descriptors';
    const TEMPLATE_VAR_CURRENTVALUES = 'org_tubepress_impl_options_ui_fields_AbstractMultiSelectField__currentValues';
    /** Array of option descriptors. */
    private $_optionDescriptors;
    /** Name. */
    private $_name;
    public function __construct($optionDescriptors, $name, $description = '')
    {
        parent::__construct();
        if (!is_array($optionDescriptors)) {
开发者ID:nidalhajaj,项目名称:tubepress,代码行数:31,代码来源:AbstractMultiSelectField.class.php

示例3: class_exists

 * TubePress is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * TubePress is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with TubePress.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
class_exists('org_tubepress_impl_classloader_ClassLoader') || (require dirname(__FILE__) . '/../../classloader/ClassLoader.class.php');
org_tubepress_impl_classloader_ClassLoader::loadClasses(array('org_tubepress_api_const_options_names_Advanced', 'org_tubepress_api_const_options_names_Display', 'org_tubepress_api_const_options_names_Embedded', 'org_tubepress_api_const_options_names_Feed', 'org_tubepress_api_const_options_names_Meta', 'org_tubepress_api_const_options_names_Output', 'org_tubepress_api_const_options_values_ModeValue', 'org_tubepress_api_patterns_cor_Command', 'org_tubepress_api_provider_Provider', 'org_tubepress_api_url_Url', 'org_tubepress_api_exec_ExecutionContext'));
/**
 * Base URL builder functionality.
 */
abstract class org_tubepress_impl_url_commands_AbstractUrlBuilderCommand implements org_tubepress_api_patterns_cor_Command
{
    /**
     * Execute the command.
     *
     * @param array $context An array of context elements (may be empty).
     *
     * @return boolean True if this command was able to handle the execution. False otherwise.
     */
    public function execute($context)
    {
        if ($context->providerName !== $this->getHandledProviderName()) {
开发者ID:Ashleyotero,项目名称:oldest-old,代码行数:31,代码来源:AbstractUrlBuilderCommand.class.php

示例4: class_exists

 * TubePress is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * TubePress is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with TubePress.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
class_exists('org_tubepress_impl_classloader_ClassLoader') || (require dirname(__FILE__) . '/../../../classloader/ClassLoader.class.php');
org_tubepress_impl_classloader_ClassLoader::loadClasses(array('org_tubepress_api_const_js_TubePressGalleryInitInit', 'org_tubepress_api_const_options_names_Thumbs', 'org_tubepress_api_const_options_names_Embedded', 'org_tubepress_api_exec_ExecutionContext', 'org_tubepress_api_filesystem_Explorer', 'org_tubepress_api_theme_ThemeHandler', 'org_tubepress_impl_log_Log'));
/**
 * Sets some base parameters to send to TubePressGallery.init().
 */
class org_tubepress_impl_plugin_filters_galleryinitjs_GalleryInitJsBaseParams
{
    private static $_logPrefix = 'Base Init Params Filter';
    /**
     * Modify the name-value pairs sent to TubePressGallery.init().
     *
     * @param array $args An associative array (name => value) of args to send to TubePressGallery.init();
     *
     * @return array The (possibly modified) array. Never null.
     *
     */
    public function alter_galleryInitJavaScript($args)
开发者ID:nidalhajaj,项目名称:tubepress,代码行数:31,代码来源:GalleryInitJsBaseParams.class.php

示例5: class_exists

 * TubePress is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * TubePress is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with TubePress.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
class_exists('org_tubepress_impl_classloader_ClassLoader') || (require dirname(__FILE__) . '/../classloader/ClassLoader.class.php');
org_tubepress_impl_classloader_ClassLoader::loadClasses(array('org_tubepress_api_const_http_ParamName', 'org_tubepress_api_html_HeadHtmlGenerator', 'org_tubepress_api_http_HttpRequestParameterService', 'org_tubepress_impl_ioc_IocContainer'));
/**
 * Generates HTML for use in the <head>.
 */
class org_tubepress_impl_html_DefaultHeadHtmlGenerator implements org_tubepress_api_html_HeadHtmlGenerator
{
    private $_tubepressBaseUrl;
    public function __construct()
    {
        global $tubepress_base_url;
        $this->_tubepressBaseUrl = $tubepress_base_url;
    }
    public function getHeadJqueryInclusion()
    {
        $url = $this->_tubepressBaseUrl;
        return "<script type=\"text/javascript\" src=\"{$url}/sys/ui/static/js/jquery-1.7.1.min.js\"></script>";
开发者ID:nidalhajaj,项目名称:tubepress,代码行数:31,代码来源:DefaultHeadHtmlGenerator.class.php

示例6: class_exists

 * TubePress is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * TubePress is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with TubePress.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
class_exists('org_tubepress_impl_classloader_ClassLoader') || (require dirname(__FILE__) . '/../classloader/ClassLoader.class.php');
org_tubepress_impl_classloader_ClassLoader::loadClasses(array('org_tubepress_api_provider_Provider', 'org_tubepress_impl_ioc_TubePressIocService'));
/**
 * Dependency injector for TubePress in a WordPress environment
 */
class org_tubepress_impl_ioc_FreeWordPressPluginIocService extends org_tubepress_impl_ioc_TubePressIocService
{
    /**
     * Default constructor.
     */
    function __construct()
    {
        parent::__construct();
        $this->bind('org_tubepress_api_bootstrap_Bootstrapper')->to('org_tubepress_impl_bootstrap_TubePressBootstrapper');
        $this->bind('org_tubepress_api_cache_Cache')->to('org_tubepress_impl_cache_PearCacheLiteCacheService');
        $this->bind('org_tubepress_api_embedded_EmbeddedHtmlGenerator')->to('org_tubepress_impl_embedded_EmbeddedPlayerChain');
        $this->bind('org_tubepress_api_environment_Detector')->to('org_tubepress_impl_environment_SimpleEnvironmentDetector');
开发者ID:nidalhajaj,项目名称:tubepress,代码行数:31,代码来源:FreeWordPressPluginIocService.class.php

示例7: class_exists

 * TubePress is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * TubePress is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with TubePress.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
class_exists('org_tubepress_impl_classloader_ClassLoader') || (require dirname(__FILE__) . '/../../impl/classloader/ClassLoader.class.php');
org_tubepress_impl_classloader_ClassLoader::loadClasses(array('org_tubepress_api_video_Video'));
/**
 * A TubePress "player", such as lightWindow, GreyBox, popup window, etc
 */
interface org_tubepress_api_player_PlayerHtmlGenerator
{
    const _ = 'org_tubepress_api_player_PlayerHtmlGenerator';
    /**
     * Get's the HTML for the TubePress "player"
     *
     * @param org_tubepress_api_video_Video $vid The video to display in the player.
     *
     * @throws Exception If something goes wrong.
     *
     * @return string The HTML for this player with the given video.
     */
开发者ID:nidalhajaj,项目名称:tubepress,代码行数:31,代码来源:PlayerHtmlGenerator.class.php

示例8: class_exists

 * TubePress is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * TubePress is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with TubePress.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
class_exists('org_tubepress_impl_classloader_ClassLoader') || (require dirname(__FILE__) . '/../../../classloader/ClassLoader.class.php');
org_tubepress_impl_classloader_ClassLoader::loadClasses(array('org_tubepress_api_const_js_TubePressGalleryInit', 'org_tubepress_api_const_options_names_Advanced', 'org_tubepress_api_const_options_names_Display', 'org_tubepress_api_const_options_names_Embedded', 'org_tubepress_api_provider_ProviderResult', 'org_tubepress_api_theme_ThemeHandler', 'org_tubepress_impl_log_Log'));
/**
 * Injects Ajax pagination code into the gallery's HTML.
 */
class org_tubepress_impl_plugin_filters_galleryhtml_GalleryJs
{
    private static $_logPrefix = 'Gallery JS Filter';
    /**
     * Filters the HTML for the gallery.
     *
     * @param string $html      The gallery HTML.
     * @param string $galleryId The current gallery ID
     *
     * @return string The modified HTML
     */
    public function alter_galleryHtml($html, org_tubepress_api_provider_ProviderResult $providerResult, $page, $providerName)
开发者ID:nidalhajaj,项目名称:tubepress,代码行数:31,代码来源:GalleryJs.class.php

示例9: class_exists

 * TubePress is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * TubePress is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with TubePress.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
class_exists('org_tubepress_impl_classloader_ClassLoader') || (require dirname(__FILE__) . '/../classloader/ClassLoader.class.php');
org_tubepress_impl_classloader_ClassLoader::loadClasses(array('org_tubepress_api_const_plugin_FilterPoint', 'org_tubepress_api_embedded_EmbeddedHtmlGenerator', 'org_tubepress_api_patterns_cor_Chain', 'org_tubepress_api_plugin_PluginManager', 'org_tubepress_api_provider_ProviderCalculator', 'org_tubepress_impl_ioc_IocContainer'));
/**
 * An HTML-embeddable video player.
 */
class org_tubepress_impl_embedded_EmbeddedPlayerChain implements org_tubepress_api_embedded_EmbeddedHtmlGenerator
{
    /**
     * Spits back the HTML for this embedded player
     *
     * @param string $videoId The video ID to display
     *
     * @return string The HTML for this embedded player
     */
    public function getHtml($videoId)
    {
        $ioc = org_tubepress_impl_ioc_IocContainer::getInstance();
开发者ID:Ashleyotero,项目名称:oldest-old,代码行数:31,代码来源:EmbeddedPlayerChain.class.php

示例10: class_exists

 * Copyright 2006 - 2012 Eric D. Hough (http://ehough.com)
 *
 * This file is part of TubePress (http://tubepress.org)
 *
 * TubePress is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * TubePress is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with TubePress.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
class_exists('org_tubepress_impl_classloader_ClassLoader') || (require dirname(__FILE__) . '/../../../classloader/ClassLoader.class.php');
org_tubepress_impl_classloader_ClassLoader::loadClasses(array('org_tubepress_impl_options_ui_fields_AbstractOptionDescriptorBasedField'));
/**
 * Displays a checkbox input.
 */
class org_tubepress_impl_options_ui_fields_BooleanField extends org_tubepress_impl_options_ui_fields_AbstractOptionDescriptorBasedField
{
    const __ = 'org_tubepress_impl_options_ui_fields_BooleanField';
    protected function getTemplatePath()
    {
        return 'sys/ui/templates/options_page/fields/checkbox.tpl.php';
    }
}
开发者ID:nidalhajaj,项目名称:tubepress,代码行数:31,代码来源:BooleanField.class.php

示例11: class_exists

 * TubePress is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * TubePress is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with TubePress.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
class_exists('org_tubepress_impl_classloader_ClassLoader') || (require dirname(__FILE__) . '/../classloader/ClassLoader.class.php');
org_tubepress_impl_classloader_ClassLoader::loadClasses(array('org_tubepress_api_bootstrap_Bootstrapper', 'org_tubepress_api_exec_ExecutionContext', 'org_tubepress_api_const_options_names_Advanced', 'org_tubepress_api_const_options_names_GallerySource', 'org_tubepress_api_const_plugin_EventName', 'org_tubepress_api_const_plugin_FilterPoint', 'org_tubepress_api_environment_Detector', 'org_tubepress_api_filesystem_Explorer', 'org_tubepress_api_ioc_IocService', 'org_tubepress_api_options_StorageManager', 'org_tubepress_api_plugin_PluginManager', 'org_tubepress_api_theme_ThemeHandler', 'org_tubepress_impl_ioc_IocContainer', 'org_tubepress_impl_log_Log', 'TubePress'));
/**
 * Performs TubePress-wide initialization.
 */
class org_tubepress_impl_bootstrap_TubePressBootstrapper implements org_tubepress_api_bootstrap_Bootstrapper
{
    const LOG_PREFIX = 'TubePress Bootstrapper';
    private static $_alreadyBooted = false;
    /**
     * Performs TubePress-wide initialization.
     *
     * @return null
     */
    public function boot()
    {
        /* don't boot twice! */
开发者ID:nidalhajaj,项目名称:tubepress,代码行数:31,代码来源:TubePressBootstrapper.class.php

示例12: class_exists

 * TubePress is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * TubePress is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with TubePress.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
class_exists('org_tubepress_impl_classloader_ClassLoader') || (require dirname(__FILE__) . '/../classloader/ClassLoader.class.php');
org_tubepress_impl_classloader_ClassLoader::loadClasses(array('org_tubepress_api_const_plugin_FilterPoint', 'org_tubepress_api_factory_VideoFactory', 'org_tubepress_api_patterns_cor_Chain', 'org_tubepress_api_plugin_PluginManager', 'org_tubepress_impl_ioc_IocContainer'));
/**
 * Video factory that sends the feed to the right video factory based on the provider
 */
class org_tubepress_impl_factory_VideoFactoryChain implements org_tubepress_api_factory_VideoFactory
{
    /**
     * Converts raw video feeds to TubePress videos
     *
     * @param unknown $feed The raw feed result from the video provider
     *
     * @return array an array of TubePress videos generated from the feed
     */
    public function feedToVideoArray($feed)
    {
        try {
开发者ID:Ashleyotero,项目名称:oldest-old,代码行数:31,代码来源:VideoFactoryChain.class.php

示例13: class_exists

 * TubePress is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * TubePress is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with TubePress.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
class_exists('org_tubepress_impl_classloader_ClassLoader') || (require dirname(__FILE__) . '/../classloader/ClassLoader.class.php');
org_tubepress_impl_classloader_ClassLoader::loadClasses(array('org_tubepress_api_querystring_QueryStringService'));
/**
 * Handles some tasks related to the query string
 */
class org_tubepress_impl_querystring_SimpleQueryStringService implements org_tubepress_api_querystring_QueryStringService
{
    /**
     * Returns what's in the address bar
     *
     * @param array $serverVars The PHP $_SERVER array
     *
     * @return string What's in the address bar
     */
    public function getFullUrl($serverVars)
    {
        $pageURL = 'http';
开发者ID:nidalhajaj,项目名称:tubepress,代码行数:31,代码来源:SimpleQueryStringService.class.php

示例14: class_exists

 * TubePress is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * TubePress is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with TubePress.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
class_exists('org_tubepress_impl_classloader_ClassLoader') || (require dirname(__FILE__) . '/../classloader/ClassLoader.class.php');
org_tubepress_impl_classloader_ClassLoader::loadClasses(array('org_tubepress_api_message_MessageService'));
/**
 * Message service that uses gettext (via WordPress)
 */
class org_tubepress_impl_message_WordPressMessageService implements org_tubepress_api_message_MessageService
{
    /**
     * Retrieves a message for TubePress
     *
     * @param string $msgId The message ID
     *
     * @return string The corresponding message, or "" if not found
     */
    public function _($message)
    {
        return $message == '' ? '' : __($message, 'tubepress');
开发者ID:nidalhajaj,项目名称:tubepress,代码行数:31,代码来源:WordPressMessageService.class.php

示例15: class_exists

 * TubePress is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * TubePress is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with TubePress.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
class_exists('org_tubepress_impl_classloader_ClassLoader') || (require dirname(__FILE__) . '/../../../classloader/ClassLoader.class.php');
org_tubepress_impl_classloader_ClassLoader::loadClasses(array('org_tubepress_api_const_options_names_Advanced', 'org_tubepress_api_const_options_names_Embedded', 'org_tubepress_api_const_template_Variable', 'org_tubepress_api_embedded_EmbeddedHtmlGenerator', 'org_tubepress_api_template_Template', 'org_tubepress_api_video_Video', 'org_tubepress_impl_ioc_IocContainer'));
/**
 * Applies core player template variables.
 */
class org_tubepress_impl_plugin_filters_playertemplate_CoreVariables
{
    public function alter_playerTemplate(org_tubepress_api_template_Template $template, org_tubepress_api_video_Video $video, $videoProviderName, $playerName)
    {
        $ioc = org_tubepress_impl_ioc_IocContainer::getInstance();
        $embedded = $ioc->get('org_tubepress_api_embedded_EmbeddedHtmlGenerator');
        $context = $ioc->get('org_tubepress_api_exec_ExecutionContext');
        $galleryId = $context->get(org_tubepress_api_const_options_names_Advanced::GALLERY_ID);
        $template->setVariable(org_tubepress_api_const_template_Variable::EMBEDDED_SOURCE, $embedded->getHtml($video->getId()));
        $template->setVariable(org_tubepress_api_const_template_Variable::GALLERY_ID, $galleryId);
        $template->setVariable(org_tubepress_api_const_template_Variable::VIDEO, $video);
        $template->setVariable(org_tubepress_api_const_template_Variable::EMBEDDED_WIDTH, $context->get(org_tubepress_api_const_options_names_Embedded::EMBEDDED_WIDTH));
开发者ID:Ashleyotero,项目名称:oldest-old,代码行数:31,代码来源:CoreVariables.class.php


注:本文中的org_tubepress_impl_classloader_ClassLoader::loadClasses方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。