本文整理汇总了PHP中org_tubepress_impl_classloader_ClassLoader类的典型用法代码示例。如果您正苦于以下问题:PHP org_tubepress_impl_classloader_ClassLoader类的具体用法?PHP org_tubepress_impl_classloader_ClassLoader怎么用?PHP org_tubepress_impl_classloader_ClassLoader使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了org_tubepress_impl_classloader_ClassLoader类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: setUp
public function setUp()
{
self::$_mockCache = array();
$ioc = \Mockery::mock('org_tubepress_api_ioc_IocService');
$ioc->shouldReceive('get')->zeroOrMoreTimes()->andReturnUsing(function ($className) {
if (!array_key_exists($className, TubePressUnitTest::$_mockCache)) {
org_tubepress_impl_classloader_ClassLoader::loadClass($className);
$mock = \Mockery::mock($className);
TubePressUnitTest::$_mockCache[$className] = $mock;
if (!is_a($mock, $className)) {
TubePressUnitTest::fail("Failed to built mock of {$className}");
}
}
return TubePressUnitTest::$_mockCache[$className];
});
org_tubepress_impl_ioc_IocContainer::setInstance($ioc);
}
开发者ID:nidalhajaj,项目名称:tubepress,代码行数:17,代码来源:TubePressUnitTest.php
示例2: getInstance
/**
* Get the singleton inversion of control container.
*
* @return org_tubepress_api_ioc_IocService The singleton IOC container.
*/
public static function getInstance()
{
/* see if we already built one */
if (isset(self::$_instance)) {
return self::$_instance;
}
$detector = new org_tubepress_impl_environment_SimpleEnvironmentDetector();
if ($detector->isPro()) {
if ($detector->isWordPress()) {
org_tubepress_impl_classloader_ClassLoader::loadClass('org_tubepress_impl_ioc_ProInWordPressIocService');
self::$_instance = new org_tubepress_impl_ioc_ProInWordPressIocService();
} else {
org_tubepress_impl_classloader_ClassLoader::loadClass('org_tubepress_impl_ioc_ProIocService');
self::$_instance = new org_tubepress_impl_ioc_ProIocService();
}
} else {
org_tubepress_impl_classloader_ClassLoader::loadClass('org_tubepress_impl_ioc_FreeWordPressPluginIocService');
self::$_instance = new org_tubepress_impl_ioc_FreeWordPressPluginIocService();
}
return self::$_instance;
}
开发者ID:nidalhajaj,项目名称:tubepress,代码行数:26,代码来源:IocContainer.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_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
示例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_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
示例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: execute
*
* 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/>.
*
*/
org_tubepress_impl_classloader_ClassLoader::loadClasses(array('org_tubepress_api_const_options_names_Display', 'org_tubepress_api_const_options_names_Output', 'org_tubepress_api_const_options_values_PlayerValue', 'org_tubepress_api_patterns_cor_Chain', 'org_tubepress_api_patterns_cor_Command', 'org_tubepress_impl_shortcode_commands_SingleVideoCommand', 'org_tubepress_impl_ioc_IocContainer', 'org_tubepress_impl_log_Log'));
/**
* HTML-generation command that implements the "solo" player command.
*/
class org_tubepress_impl_shortcode_commands_SoloPlayerCommand implements org_tubepress_api_patterns_cor_Command
{
const LOG_PREFIX = 'Solo Player 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)
{
开发者ID:Ashleyotero,项目名称:oldest-old,代码行数:31,代码来源:SoloPlayerCommand.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_spi_patterns_cor_Command', 'org_tubepress_api_const_plugin_FilterPoint', 'org_tubepress_api_url_Url', 'org_tubepress_api_video_Video', 'org_tubepress_impl_factory_commands_AbstractFactoryCommand'));
/**
* Video factory for YouTube
*/
class org_tubepress_impl_factory_commands_YouTubeFactoryCommand extends org_tubepress_impl_factory_commands_AbstractFactoryCommand
{
/* shorthands for the namespaces */
const NS_APP = 'http://www.w3.org/2007/app';
const NS_ATOM = 'http://www.w3.org/2005/Atom';
const NS_MEDIA = 'http://search.yahoo.com/mrss/';
const NS_YT = 'http://gdata.youtube.com/schemas/2007';
const NS_GD = 'http://schemas.google.com/g/2005';
const LOG_PREFIX = 'YouTube Video Factory';
private $_xpath;
protected function _canHandleFeed($feed)
{
开发者ID:nidalhajaj,项目名称:tubepress,代码行数:31,代码来源:YouTubeFactoryCommand.class.php
示例10: 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
示例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_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
示例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_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
示例13: 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
示例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_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
示例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_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
示例16: 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_patterns_cor_Command', 'org_tubepress_api_patterns_cor_Chain', 'org_tubepress_impl_log_Log'));
/**
* Implementation of the "chain" in the chain-of-responsbility pattern.
*/
class org_tubepress_impl_patterns_cor_ChainGang implements org_tubepress_api_patterns_cor_Chain
{
const LOG_PREFIX = 'Chain Gang';
/**
* Executes the given commands with the given context.
*
* @param array $context An array of context elements (may be empty).
* @param array $commands An array of org_tubepress_api_patterns_cor_Command class names to execute.
*
* @return unknown The result of the command execution.
*/
public function execute($context, $commands)
开发者ID:Ashleyotero,项目名称:oldest-old,代码行数:31,代码来源:ChainGang.class.php
示例17: 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
示例18: 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_HttpResponseHandler'));
/**
* Handles HTTP responses.
*/
class org_tubepress_impl_http_HttpResponseHandlerChain implements org_tubepress_api_http_HttpResponseHandler
{
private static $_logPrefix = 'HTTP Reponse Handler Chain';
/**
* Handles an HTTP response.
*
* @param org_tubepress_api_http_HttpResponse $response The HTTP response.
*
* @throws Exception If something goes wrong.
*
* @return string The raw entity body of the response. May be empty or null.
*/
开发者ID:nidalhajaj,项目名称:tubepress,代码行数:31,代码来源:HttpResponseHandlerChain.class.php
示例19: _buildInterface
private function _buildInterface($interfaceName, $implementationName)
{
class_exists($interfaceName) || org_tubepress_impl_classloader_ClassLoader::loadClass($interfaceName);
class_exists($implementationName) || org_tubepress_impl_classloader_ClassLoader::loadClass($implementationName);
/* build the implementation */
$instance = $this->_buildAndRemember($interfaceName, $implementationName);
/* make sure the class looks OK */
if (!$instance instanceof $interfaceName) {
throw new Exception("{$implementationName} does not implement {$interfaceName}, but they were bound together");
}
return $instance;
}
开发者ID:nidalhajaj,项目名称:tubepress,代码行数:12,代码来源:TubePressIocService.class.php
示例20: 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_names_Output', 'org_tubepress_api_const_options_names_Widget', 'org_tubepress_api_const_options_Type', 'org_tubepress_api_const_options_values_ModeValue', 'org_tubepress_api_const_options_values_OrderValue', 'org_tubepress_api_const_options_values_PlayerImplementationValue', 'org_tubepress_api_const_options_values_PlayerValue', 'org_tubepress_api_const_options_values_SafeSearchValue', 'org_tubepress_api_const_options_values_TimeFrameValue', 'org_tubepress_api_embedded_EmbeddedHtmlGenerator', 'org_tubepress_impl_options_OptionsReference'));
/**
* The master reference for TubePress options - their names, deprecated
* names, default values, types, etc.
*
*/
class org_tubepress_impl_options_OptionsReference
{
private static $_options = array(org_tubepress_api_const_options_Type::COLOR => array(org_tubepress_api_const_options_names_Embedded::PLAYER_COLOR => '999999', org_tubepress_api_const_options_names_Embedded::PLAYER_HIGHLIGHT => 'FFFFFF'), org_tubepress_api_const_options_Type::MODE => array(org_tubepress_api_const_options_names_Output::MODE => org_tubepress_api_const_options_values_ModeValue::FEATURED), org_tubepress_api_const_options_Type::TEXT => array(org_tubepress_api_const_options_names_Advanced::DATEFORMAT => 'M j, Y', org_tubepress_api_const_options_names_Advanced::KEYWORD => 'tubepress', org_tubepress_api_const_options_names_Advanced::VIDEO_BLACKLIST => '', org_tubepress_api_const_options_names_Advanced::GALLERY_ID => '', org_tubepress_api_const_options_names_Output::FAVORITES_VALUE => 'mrdeathgod', org_tubepress_api_const_options_names_Output::PLAYLIST_VALUE => 'D2B04665B213AE35', org_tubepress_api_const_options_names_Output::TAG_VALUE => 'pittsburgh steelers', org_tubepress_api_const_options_names_Output::USER_VALUE => '3hough', org_tubepress_api_const_options_names_Feed::DEV_KEY => 'AI39si5uUzupiQW9bpzGqZRrhvqF3vBgRqL-I_28G1zWozmdNJlskzMDQEhpZ-l2RqGf_6CNWooL96oJZRrqKo-eJ9QO_QppMg', org_tubepress_api_const_options_names_Feed::VIMEO_KEY => '', org_tubepress_api_const_options_names_Feed::VIMEO_SECRET => '', org_tubepress_api_const_options_names_Widget::TITLE => 'TubePress', org_tubepress_api_const_options_names_Widget::TAGSTRING => '[tubepress thumbHeight=\'105\' thumbWidth=\'135\']', org_tubepress_api_const_options_names_Output::VIDEO => '', org_tubepress_api_const_options_names_Output::VIMEO_UPLOADEDBY_VALUE => 'mattkaar', org_tubepress_api_const_options_names_Output::VIMEO_LIKES_VALUE => 'coiffier', org_tubepress_api_const_options_names_Output::VIMEO_APPEARS_IN_VALUE => 'royksopp', org_tubepress_api_const_options_names_Output::VIMEO_SEARCH_VALUE => 'cats playing piano', org_tubepress_api_const_options_names_Output::VIMEO_CREDITED_VALUE => 'patricklawler', org_tubepress_api_const_options_names_Output::VIMEO_CHANNEL_VALUE => 'splitscreenstuff', org_tubepress_api_const_options_names_Output::VIMEO_GROUP_VALUE => 'hdxs', org_tubepress_api_const_options_names_Output::VIMEO_ALBUM_VALUE => '140484', org_tubepress_api_const_options_names_Advanced::CACHE_DIR => '', org_tubepress_api_const_options_names_Feed::SEARCH_ONLY_USER => '', org_tubepress_api_const_options_names_Output::SEARCH_RESULTS_URL => '', org_tubepress_api_const_options_names_Output::SEARCH_PROVIDER => 'youtube', org_tubepress_api_const_options_names_Output::SEARCH_RESULTS_DOM_ID => ''), org_tubepress_api_const_options_Type::BOOL => array(org_tubepress_api_const_options_names_Advanced::DEBUG_ON => true, org_tubepress_api_const_options_names_Advanced::DISABLE_HTTP_CURL => false, org_tubepress_api_const_options_names_Advanced::DISABLE_HTTP_EXTHTTP => false, org_tubepress_api_const_options_names_Advanced::DISABLE_HTTP_FOPEN => false, org_tubepress_api_const_options_names_Advanced::DISABLE_HTTP_FSOCKOPEN => false, org_tubepress_api_const_options_names_Advanced::DISABLE_HTTP_STREAMS => false, org_tubepress_api_const_options_names_Display::RANDOM_THUMBS => true, org_tubepress_api_const_options_names_Display::RELATIVE_DATES => false, org_tubepress_api_const_options_names_Display::PAGINATE_ABOVE => true, org_tubepress_api_const_options_names_Display::PAGINATE_BELOW => true, org_tubepress_api_const_options_names_Display::AJAX_PAGINATION => false, org_tubepress_api_const_options_names_Display::HQ_THUMBS => false, org_tubepress_api_const_options_names_Display::FLUID_THUMBS => true, org_tubepress_api_const_options_names_Embedded::AUTOPLAY => false, org_tubepress_api_const_options_names_Embedded::LAZYPLAY => true, org_tubepress_api_const_options_names_Embedded::LOOP => false, org_tubepress_api_const_options_names_Embedded::SHOW_INFO => false, org_tubepress_api_const_options_names_Embedded::SHOW_RELATED => true, org_tubepress_api_const_options_names_Embedded::FULLSCREEN => true, org_tubepress_api_const_options_names_Embedded::HIGH_QUALITY => false, org_tubepress_api_const_options_names_Meta::AUTHOR => false, org_tubepress_api_const_options_names_Meta::CATEGORY => false, org_tubepress_api_const_options_names_Meta::DESCRIPTION => false, org_tubepress_api_const_options_names_Meta::ID => false, org_tubepress_api_const_options_names_Meta::LENGTH => true, org_tubepress_api_const_options_names_Meta::RATING => false, org_tubepress_api_const_options_names_Meta::RATINGS => false, org_tubepress_api_const_options_names_Meta::TAGS => false, org_tubepress_api_const_options_names_Meta::TITLE => true, org_tubepress_api_const_options_names_Meta::UPLOADED => false, org_tubepress_api_const_options_names_Meta::URL => false, org_tubepress_api_const_options_names_Meta::VIEWS => true, org_tubepress_api_const_options_names_Meta::LIKES => false, org_tubepress_api_const_options_names_Feed::CACHE_ENABLED => false, org_tubepress_api_const_options_names_Feed::EMBEDDABLE_ONLY => true, org_tubepress_api_const_options_names_Output::SEARCH_RESULTS_ONLY => false), org_tubepress_api_const_options_Type::INTEGRAL => array(org_tubepress_api_const_options_names_Display::DESC_LIMIT => 80, org_tubepress_api_const_options_names_Display::RESULTS_PER_PAGE => 20, org_tubepress_api_const_options_names_Display::THUMB_HEIGHT => 90, org_tubepress_api_const_options_names_Display::THUMB_WIDTH => 120, org_tubepress_api_const_options_names_Embedded::EMBEDDED_HEIGHT => 350, org_tubepress_api_const_options_names_Embedded::EMBEDDED_WIDTH => 425, org_tubepress_api_const_options_names_Feed::RESULT_COUNT_CAP => 300, org_tubepress_api_const_options_names_Advanced::CACHE_CLEAN_FACTOR => 20, org_tubepress_api_const_options_names_Advanced::CACHE_LIFETIME_SECONDS => 3600), org_tubepress_api_const_options_Type::TIME_FRAME => array(org_tubepress_api_const_options_names_Output::MOST_VIEWED_VALUE => org_tubepress_api_const_options_values_TimeFrameValue::TODAY, org_tubepress_api_const_options_names_Output::TOP_RATED_VALUE => org_tubepress_api_const_options_values_TimeFrameValue::TODAY, org_tubepre
|
请发表评论