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


PHP cssJSToolbox::getText方法代码示例

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


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

示例1: menu

 /**
  * put your comment there...
  * 
  */
 public function menu()
 {
     // Setup Page.
     $pageHookId = add_submenu_page(CJTPlugin::PLUGIN_REQUEST_ID, cssJSToolbox::getText('CJT Manage - Packages'), cssJSToolbox::getText('Packages'), 'administrator', CJTPlugin::PLUGIN_REQUEST_ID . '-packages', array(&$this->controller, '_doAction'));
     // Process when its installed!!
     add_action("load-{$pageHookId}", array($this, 'getPage'));
 }
开发者ID:JSreactor,项目名称:MarketCrater.com,代码行数:11,代码来源:packages.accesspoint.php

示例2: menu

 /**
  * put your comment there...
  * 
  */
 public function menu()
 {
     // Blocks Manager page! The only Wordpress menu item we've.
     $pageHookId = add_menu_page(cssJSToolbox::getText('CSS & Javascript Toolbox'), cssJSToolbox::getText('CSS & Javascript Toolbox'), 'administrator', CJTPlugin::PLUGIN_REQUEST_ID, array(&$this->controller, '_doAction'), CJTOOLBOX_VIEWS_URL . '/blocks/manager/public/images/menu.png');
     // Process request if installed!
     add_action("load-{$pageHookId}", array($this, 'getPage'));
 }
开发者ID:JSreactor,项目名称:MarketCrater.com,代码行数:11,代码来源:manage.accesspoint.php

示例3: loadString

 /**
  * put your comment there...
  * 
  * @param mixed $strings
  * @param mixed $content
  * @return CJT_Framework_Developer_Interface_Block_Shortcode_Parameters_Parameters
  */
 public function loadString($strings, $content)
 {
     // Get the name of the CONTENT PARAMETER -- If EXISTS!
     // THEN PUSH IT AS ITS PASSED AS SHORTCODR ATTRIBUTE.
     if ($contentParameter = $this->getContentParameter()) {
         $strings[$contentParameter->getDefinition()->getName(true)] = $content;
     }
     // Load all parameters with shortcde parameters.
     foreach ($this->getParams() as $name => $param) {
         // Dont override default value unless parameter is passed!
         if (isset($strings[$name])) {
             $param->loadString($strings[$name]);
         }
         // Validate type!
         if (!$param->validate()) {
             echo cssJSToolbox::getText("Invalid Shortcode parameter: {$type->getMessage()}");
         }
         // Remove the value from the stringsValue allow validating if
         // any invalid parameter name is passed!
         // See after the loop.
         unset($strings[$name]);
     }
     // If there is any string values still exists then invalid parameter is passed.
     if (!empty($strings)) {
         echo cssJSToolbox::getText("Invalid Shortcode parameter(s) has been passed! Please check parameters name.");
     }
     return $this;
 }
开发者ID:JSreactor,项目名称:MarketCrater.com,代码行数:35,代码来源:parameters.php

示例4: menu

 /**
  * put your comment there...
  * 
  */
 public function menu()
 {
     // Extensions page.
     add_submenu_page(CJTPlugin::PLUGIN_REQUEST_ID, null, cssJSToolbox::getText('Extensions'), 'administrator', null);
     // Hack Extensions menu item to point to Plugins page!
     $GLOBALS['submenu'][CJTPlugin::PLUGIN_REQUEST_ID][self::MENU_POSITION_INDEX][2] = admin_url('plugins.php?s=' . self::PLUGINS_PAGE_SEARCH_TERM);
     // When plugins page loaded!
     add_action('load-plugins.php', array($this, 'route'), 10, 0);
 }
开发者ID:JSreactor,项目名称:MarketCrater.com,代码行数:13,代码来源:extensions.accesspoint.php

示例5: display

 /**
  * put your comment there...
  * 
  * @param mixed $tpl
  */
 public function display($tpl = null)
 {
     // Get item.
     $this->item = $this->model->getItem();
     // For all items that has no value show "Not Available"
     foreach ((array) $this->item as $prop => $value) {
         if (!$this->item->{$prop}) {
             $this->item->{$prop} = cssJSToolbox::getText('N/A');
         }
     }
     echo $this->getTemplate($tpl);
 }
开发者ID:JSreactor,项目名称:MarketCrater.com,代码行数:17,代码来源:view.php

示例6: prepareItems

 /**
  * put your comment there...
  * 
  */
 protected function prepareItems()
 {
     if (isset($this->options['result']) && $this->options['result'] == 'fullList') {
         $this->items['published']['text'] = cssJSToolbox::getText('published');
         $this->items['draft']['text'] = cssJSToolbox::getText('draft');
         $this->items['trash']['text'] = cssJSToolbox::getText('trash');
     } else {
         CJTxTable::import('author');
         $internalAuthorsFlag = CJTAuthorTable::FLAG_SYS_AUTHOR;
         // Query all template state exluding Internal authors.
         $query = "SELECT DISTINCT(state) `text` \n\t\t\t\t\t\t\t\t\t\t\t\t\tFROM #__cjtoolbox_templates t\n\t\t\t\t\t\t\t\t\t\t\t\t\tLEFT JOIN #__cjtoolbox_authors a\n\t\t\t\t\t\t\t\t\t\t\t\t\tON  t.authorId = a.id\n\t\t\t\t\t\t\t\t\t\t\t\t\tWHERE (a.attributes & {$internalAuthorsFlag}) = 0\n\t\t\t\t\t\t\t\t\t\t\t\t\tORDER BY `text`";
         $this->items = cssJSToolbox::getInstance()->getDBDriver()->select($query);
     }
 }
开发者ID:JSreactor,项目名称:MarketCrater.com,代码行数:18,代码来源:template-states.php

示例7: setValue

 /**
  * put your comment there...
  * 
  * @param mixed $value
  */
 public function setValue($value)
 {
     // Pass to child params.
     foreach ($this->params as $name => $param) {
         // Get child parameter value.
         $paramValue = isset($value[$name]) ? $value[$name] : null;
         //  Set child parameter value.
         $param->setValue($paramValue);
         if (!$param->validate()) {
             echo cssJSToolbox::getText('Invalid structure parameter passed!');
         }
     }
     return $this;
 }
开发者ID:JSreactor,项目名称:MarketCrater.com,代码行数:19,代码来源:structure.php

示例8: prepareItems

 /**
  * put your comment there...
  * 
  */
 protected function prepareItems()
 {
     if (isset($this->options['result']) && $this->options['result'] == 'fullList') {
         $this->items['release']['text'] = cssJSToolbox::getText('release');
         $this->items['beta']['text'] = cssJSToolbox::getText('beta');
         $this->items['alpha']['text'] = cssJSToolbox::getText('alpha');
         $this->items['release-candidate']['text'] = cssJSToolbox::getText('release-candidate');
         $this->items['revision']['text'] = cssJSToolbox::getText('revision');
     } else {
         // Import dependencies.
         CJTxTable::import('template-revision');
         CJTxTable::import('author');
         $lastVersionFlag = CJTTemplateRevisionTable::FLAG_LAST_REVISION;
         $internalAuthorsFlag = CJTAuthorTable::FLAG_SYS_AUTHOR;
         $query = "SELECT DISTINCT(r.state) `text` \n\t\t\t\t\t\t\t\t\t\t\t\t\t\tFROM #__cjtoolbox_template_revisions r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tLEFT JOIN #__cjtoolbox_templates t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tON  r.templateId = t.id\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tLEFT JOIN #__cjtoolbox_authors a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tON  t.authorId = a.id\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tWHERE (r.attributes & {$lastVersionFlag}) AND (a.attributes & {$internalAuthorsFlag}) = 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tORDER BY `text`";
         $this->items = cssJSToolbox::getInstance()->getDBDriver()->select($query);
     }
 }
开发者ID:JSreactor,项目名称:MarketCrater.com,代码行数:22,代码来源:template-development-states.php

示例9: setValue

 /**
  * put your comment there...
  * 
  * @param mixed $value
  */
 public function setValue($value)
 {
     // Start from the begining.
     reset($value);
     // Pass to child params.
     foreach ($this->params as $param) {
         // Get child parameter value.
         $paramValue = current($value);
         //  Set child parameter value.
         $param->setValue($paramValue);
         if (!$param->validate()) {
             echo cssJSToolbox::getText('Invalid structure parameter passed!');
         }
         // Move forward!
         next($value);
     }
     return $this;
 }
开发者ID:JSreactor,项目名称:MarketCrater.com,代码行数:23,代码来源:list.php

示例10: getBlockParametersFormAction

 /**
  * put your comment there...
  * 
  */
 protected function getBlockParametersFormAction()
 {
     // Get block id.
     $blockId = (int) $_REQUEST['blockId'];
     // Get block form!
     $form = CJTxTable::getInstance('form')->setTableKey(array('blockId'))->setData(array('blockId' => $blockId))->load();
     // Set HTTP header
     $this->httpContentType = 'text/html';
     // Display form view.
     if ($form->get('blockId')) {
         // Load parameters form.
         $groups = new CJT_Models_Block_Parameters_Form_Groups($blockId);
         $params = new CJT_Models_Block_Parameters_Form_Parameters($blockId);
         $blockParams = new CJT_Framework_View_Block_Parameter_Parameters($params);
         // Return view content!
         $paramsView = CJTView::getInstance('tinymce/params', array('groups' => $groups, 'params' => $blockParams->getParams(), 'form' => $form->getData(), 'blockId' => $blockId));
         // Return paramters form content!
         $this->response = $paramsView->getTemplate('default');
     } else {
         // Error loading form!
         $this->response = cssJSToolbox::getText('The requested Block doesnt has parameters form!');
     }
 }
开发者ID:Timfreaky,项目名称:ThinkTax,代码行数:27,代码来源:tinymce-blocks.php

示例11: get_columns

 /**
  * Get a list of columns. The format is:
  * 'internal-name' => 'Title'
  *
  * @since 3.1.0
  * @access protected
  * @abstract
  *
  * @return array
  */
 public function get_columns()
 {
     return array('_selection_' => '<input type="checkbox" class="select-all" />', 'name' => cssJSToolbox::getText('Name'), 'type' => cssJSToolbox::getText('Type'), 'version' => cssJSToolbox::getText('Version'), 'developmentState' => cssJSToolbox::getText('Release'), 'author' => cssJSToolbox::getText('Author'), 'creationDate' => cssJSToolbox::getText('Date Created'), 'lastModified' => cssJSToolbox::getText('Last Modified'), 'state' => cssJSToolbox::getText('State'));
 }
开发者ID:JSreactor,项目名称:MarketCrater.com,代码行数:14,代码来源:wp-list-table.inc.php

示例12: __construct

 /**
  * put your comment there...
  * 
  */
 public function __construct()
 {
     // Define auxiliary list.
     $this->list = array(CJTBlockModel::PINS_POSTS_BLOG_INDEX => cssJSToolbox::getText('Blog Index'), CJTBlockModel::PINS_POSTS_ALL_POSTS => cssJSToolbox::getText('All Posts'), CJTBlockModel::PINS_PAGES_ALL_PAGES => cssJSToolbox::getText('All Pages'), CJTBlockModel::PINS_CATEGORIES_ALL_CATEGORIES => cssJSToolbox::getText('All Categories'), CJTBlockModel::PINS_POSTS_RECENT => cssJSToolbox::getText('Recent Posts'), CJTBlockModel::PINS_FRONTEND => cssJSToolbox::getText('Entire Website'), CJTBlockModel::PINS_BACKEND => cssJSToolbox::getText('Website Backend'), CJTBlockModel::PINS_SEARCH => cssJSToolbox::getText('Search Pages'), CJTBlockModel::PINS_ARCHIVE => cssJSToolbox::getText('All Archives'), CJTBlockModel::PINS_TAG => cssJSToolbox::getText('Tag Archives'), CJTBlockModel::PINS_AUTHOR => cssJSToolbox::getText('Author Archives'), CJTBlockModel::PINS_ATTACHMENT => cssJSToolbox::getText('Attachment Pages'), CJTBlockModel::PINS_404_ERROR => cssJSToolbox::getText('404 Error'));
 }
开发者ID:JSreactor,项目名称:MarketCrater.com,代码行数:9,代码来源:auxiliary.php

示例13: processIncompatibles

 /**
  * put your comment there...
  * 
  * @TODO: REMOVE HTML-MARKUP. CJT PLUGIN NEVER WRITE MARKUP IMIXED WITH HTML. ITS VERY BAD PROGRAMMING PRACTICE. THIS WILL BE REMOVED NEXT TIME AS WE IN RUSH!!!
  */
 public function processIncompatibles()
 {
     // Proces only if in CJT page.
     if (!preg_match('/\\/plugins\\.php|page\\=cjtoolbox/', $_SERVER['REQUEST_URI'])) {
         return;
     }
     // INitialize.
     $message = cssJSToolbox::getText('CJT detects incompatible installed extensions, listed below with status message for every extension:');
     $list = '';
     // For every compatible extension add
     // an list item with details
     // if there is an update available or provide
     // a direct link to CJT website if no upgrade is available.
     // Upgrade wont be available in case no license key is activated!
     foreach ($this->incompatibilies as $class => $extension) {
         // Show details.
         $pluginInfo = get_plugin_data($extension['pluginFile']);
         // List item Markup
         $list .= "<li><a target='_blank' href='{$pluginInfo['PluginURI']}'>{$pluginInfo['Name']}</a> (Status: {$extension['incompatibleMessage']['flag']}, Message: {$extension['incompatibleMessage']['msg']})</li>\n";
     }
     // Output full message.
     // TODO: BAD PRACTICE1!!!!! NEVER MIX HTML WITH PHP, JUST TEMPORARY1!!!
     echo "<div class='cjt-incomaptible-extensions-notice updated' style='font-size:14px;font-weight:bold;padding-top:11px'>\n\t\t\t\t\t\t<span>{$message}</span>\n\t\t\t\t\t\t<ul style='list-style-type: circle;padding-left: 27px;font-size: 12px;'>{$list}</ul>\n\t\t\t\t\t</div>";
 }
开发者ID:JSreactor,项目名称:MarketCrater.com,代码行数:29,代码来源:extensions.class.php

示例14: array

<?php

/**
* @version FILE_VERSION
* Localization file for jquery.block.js script.
*/
/**
* Localization for Javascript cjtJQueryBlockI18N variable.
* 
* Localization text for backups script.
*/
return array('blockRevisionsDialogTitle' => cssJSToolbox::getText('Block revisions'), 'blockInfoTitle' => cssJSToolbox::getText('CJT-Block Info'), 'confirmDelete' => cssJSToolbox::getText('Are you sure you want to delete this (%s) code block?'), 'state_activeTitle' => cssJSToolbox::getText('Deactivate (turn off) code block'), 'state_inactiveTitle' => cssJSToolbox::getText('Activate (turn on) code block'), 'location_headerTitle' => cssJSToolbox::getText('Set output location hook to footer'), 'location_footerTitle' => cssJSToolbox::getText('Set output location hook to header'), 'invalidBlockName' => cssJSToolbox::getText('Invalid block name'), 'loadingBlock' => cssJSToolbox::getText('Loading'));
开发者ID:JSreactor,项目名称:MarketCrater.com,代码行数:12,代码来源:jquery.block.localization.php

示例15: array

<?php

/**
* @version FILE_VERSION
* Localization file for jquery.block.js script.
*/
/**
* Localization for Javascript  variable.
* 
* Localization text for backups script.
*/
return array('activationFormTitle' => cssJSToolbox::getText('CJT Extension License Activation Form'));
开发者ID:JSreactor,项目名称:MarketCrater.com,代码行数:12,代码来源:default.localization.php


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