Revision: 46007
http://sourceforge.net/p/tikiwiki/code/46007
Author: lphuberdeau
Date: 2013-05-20 18:34:12 +0000 (Mon, 20 May 2013)
Log Message:
-----------
[MOD] Adding references to all plugins
Modified Paths:
--------------
trunk/lib/core/Tiki/Profile/InstallHandler/WikiPage.php
trunk/lib/core/Tiki/Profile/Installer.php
trunk/lib/core/Tiki/Profile/Writer.php
trunk/lib/wiki-plugins/wikiplugin_addfreetag.php
trunk/lib/wiki-plugins/wikiplugin_addrelation.php
trunk/lib/wiki-plugins/wikiplugin_addtocart.php
trunk/lib/wiki-plugins/wikiplugin_addtogooglecal.php
trunk/lib/wiki-plugins/wikiplugin_alink.php
trunk/lib/wiki-plugins/wikiplugin_article.php
trunk/lib/wiki-plugins/wikiplugin_articles.php
trunk/lib/wiki-plugins/wikiplugin_attach.php
trunk/lib/wiki-plugins/wikiplugin_author.php
trunk/lib/wiki-plugins/wikiplugin_avatar.php
trunk/lib/wiki-plugins/wikiplugin_backlinks.php
trunk/lib/wiki-plugins/wikiplugin_bigbluebutton.php
trunk/lib/wiki-plugins/wikiplugin_bloglist.php
trunk/lib/wiki-plugins/wikiplugin_button.php
trunk/lib/wiki-plugins/wikiplugin_calendar.php
trunk/lib/wiki-plugins/wikiplugin_carousel.php
trunk/lib/wiki-plugins/wikiplugin_category.php
trunk/lib/wiki-plugins/wikiplugin_categorytransition.php
trunk/lib/wiki-plugins/wikiplugin_chart.php
trunk/lib/wiki-plugins/wikiplugin_colorbox.php
trunk/lib/wiki-plugins/wikiplugin_comment.php
trunk/lib/wiki-plugins/wikiplugin_convene.php
trunk/lib/wiki-plugins/wikiplugin_customsearch.php
trunk/lib/wiki-plugins/wikiplugin_datachannel.php
trunk/lib/wiki-plugins/wikiplugin_dialog.php
trunk/lib/wiki-plugins/wikiplugin_draw.php
trunk/lib/wiki-plugins/wikiplugin_events.php
trunk/lib/wiki-plugins/wikiplugin_favorite.php
trunk/lib/wiki-plugins/wikiplugin_file.php
trunk/lib/wiki-plugins/wikiplugin_files.php
trunk/lib/wiki-plugins/wikiplugin_flash.php
trunk/lib/wiki-plugins/wikiplugin_galleriffic.php
trunk/lib/wiki-plugins/wikiplugin_groupmailcore.php
trunk/lib/wiki-plugins/wikiplugin_hasbought.php
trunk/lib/wiki-plugins/wikiplugin_img.php
trunk/lib/wiki-plugins/wikiplugin_include.php
trunk/lib/wiki-plugins/wikiplugin_invite.php
trunk/lib/wiki-plugins/wikiplugin_lastmod.php
trunk/lib/wiki-plugins/wikiplugin_listpages.php
trunk/lib/wiki-plugins/wikiplugin_miniquiz.php
trunk/lib/wiki-plugins/wikiplugin_objecthits.php
trunk/lib/wiki-plugins/wikiplugin_objectlink.php
trunk/lib/wiki-plugins/wikiplugin_pagetabs.php
trunk/lib/wiki-plugins/wikiplugin_perspective.php
trunk/lib/wiki-plugins/wikiplugin_poll.php
trunk/lib/wiki-plugins/wikiplugin_prettytrackerviews.php
trunk/lib/wiki-plugins/wikiplugin_redirect.php
trunk/lib/wiki-plugins/wikiplugin_regex.php
trunk/lib/wiki-plugins/wikiplugin_relations.php
trunk/lib/wiki-plugins/wikiplugin_rss.php
trunk/lib/wiki-plugins/wikiplugin_sf.php
trunk/lib/wiki-plugins/wikiplugin_sheet.php
trunk/lib/wiki-plugins/wikiplugin_stat.php
trunk/lib/wiki-plugins/wikiplugin_subscribenewsletter.php
trunk/lib/wiki-plugins/wikiplugin_survey.php
trunk/lib/wiki-plugins/wikiplugin_titlesearch.php
trunk/lib/wiki-plugins/wikiplugin_toc.php
trunk/lib/wiki-plugins/wikiplugin_tracker.php
trunk/lib/wiki-plugins/wikiplugin_trackercalendar.php
trunk/lib/wiki-plugins/wikiplugin_trackercomments.php
trunk/lib/wiki-plugins/wikiplugin_trackerfilter.php
trunk/lib/wiki-plugins/wikiplugin_trackeritemcopy.php
trunk/lib/wiki-plugins/wikiplugin_trackeritemfield.php
trunk/lib/wiki-plugins/wikiplugin_trackerlist.php
trunk/lib/wiki-plugins/wikiplugin_trackerpasscode.php
trunk/lib/wiki-plugins/wikiplugin_trackerprefill.php
trunk/lib/wiki-plugins/wikiplugin_trackerquerytemplate.php
trunk/lib/wiki-plugins/wikiplugin_trackerstat.php
trunk/lib/wiki-plugins/wikiplugin_trackertimeline.php
trunk/lib/wiki-plugins/wikiplugin_trackertoggle.php
trunk/lib/wiki-plugins/wikiplugin_transclude.php
trunk/lib/wiki-plugins/wikiplugin_vote.php
Added Paths:
-----------
trunk/lib/core/Tiki/Profile/WriterHelper.php
Modified: trunk/lib/core/Tiki/Profile/InstallHandler/WikiPage.php
===================================================================
--- trunk/lib/core/Tiki/Profile/InstallHandler/WikiPage.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/core/Tiki/Profile/InstallHandler/WikiPage.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -222,8 +222,7 @@
return false;
}
- $content = self::exportWikiContent($writer, $info['data']);
- $writer->writeExternal($page, $content);
+ $writer->writeExternal($page, $writer->getReference('wiki_content', $info['data']));
$writer->addObject('wiki_page', $page, array(
'name' => $page,
'content' => "wikicontent:$page",
@@ -233,48 +232,5 @@
return true;
}
+}
- public static function exportWikiContent($writer, $content)
- {
- $tikilib = TikiLib::lib('tiki');
- $parserlib = TikiLib::lib('parser');
- $argumentParser = new WikiParser_PluginArgumentParser;
- $matches = WikiParser_PluginMatcher::match($content);
-
- $justReplace = false;
- foreach ($matches as $match) {
- if ($justReplaced) {
- $justReplaced = false;
- continue;
- }
-
- $pluginName = $match->getName();
- $params = $argumentParser->parse($match->getArguments());
- $params = preg_replace(array('/^"/', '/"$/'), '', $params);
- $body = $match->getBody();
-
- if ($info = $parserlib->plugin_info($pluginName)) {
- foreach ($params as $paramName => & $paramValue) {
- if (isset($info['params'][$paramName]['profile_reference'])) {
- $paramInfo = $info['params'][$paramName];
-
- if (isset($paramInfo['separator'])) {
- $paramValue = $tikilib->multi_explode($paramInfo['separator'], $paramValue);
- }
-
- $paramValue = $writer->getReference($paramInfo['profile_reference'], $paramValue);
-
- if (isset($paramInfo['separator'])) {
- $paramValue = $tikilib->multi_implode($paramInfo['separator'], $paramValue);
- }
- }
- }
-
- $match->replaceWithPlugin($pluginName, $params, $body);
- $justReplaced = true;
- }
- }
-
- return $matches->getText();
- }
-}
Modified: trunk/lib/core/Tiki/Profile/Installer.php
===================================================================
--- trunk/lib/core/Tiki/Profile/Installer.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/core/Tiki/Profile/Installer.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -52,6 +52,14 @@
'tracker_item' => 'trackeritem',
);
+ private static $typeMapInvert = array(
+ 'wiki page' => 'wiki_page',
+ 'wiki' => 'wiki_page',
+ 'fgal' => 'file_gallery',
+ 'trackeritem' => 'tracker_item',
+ 'tracker item' => 'tracker_item',
+ );
+
private $userData = false;
private $debug = false;
@@ -88,12 +96,27 @@
public static function convertType( $type ) // {{{
{
- if ( array_key_exists($type, self::$typeMap) )
+ if (isset(self::$typeMap[$type])) {
return self::$typeMap[$type];
- else
+ } else {
return $type;
+ }
} // }}}
+ /**
+ * Converts a Tiki object type to a profile object type.
+ */
+ public static function convertTypeInvert( $type ) // {{{
+ {
+ $typeMap = self::$typeMapInvert;
+
+ if (isset($typeMap[$type])) {
+ return $typeMap[$type];
+ } else {
+ return $type;
+ }
+ } // }}}
+
public static function convertObject( $type, $id, $contextualizedInfo = array() ) // {{{
{
global $tikilib;
Modified: trunk/lib/core/Tiki/Profile/Writer.php
===================================================================
--- trunk/lib/core/Tiki/Profile/Writer.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/core/Tiki/Profile/Writer.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -93,17 +93,28 @@
}, $this->data['unknown_objects']);
}
- function getReference($type, $id)
+ /**
+ * Obtain the replacement string for the given type and id. Type can also be a callback
+ * or a helper name for complex transformations that require parsing and are called through
+ * the declarative interfaces (plugins, field types, preferences, ...). Extra parameters are
+ * provided in those cases since the type may depend on other arguments.
+ */
+ function getReference($type, $id, array $parameters = array())
{
// If we are provided with an anonymous function to handle special cases
if (is_callable($type)) {
- return call_user_func($type, $this, $id);
+ return call_user_func($type, $this, $id, $parameters);
+ } elseif (method_exists('Tiki_Profile_WriterHelper', $type)) {
+ return Tiki_Profile_WriterHelper::$type($this, $id, $parameters);
}
+ // Let 'wiki page' or 'tracker item' be provided as type, no effect when profile types used
+ $type = Tiki_Profile_Installer::convertTypeInvert($type);
+
if (is_array($id)) {
$parent = $this;
return array_map(function ($value) use ($type, $parent) {
- return $parent->getReference($type, $value);
+ return $parent->getReference($type, $value, $parameters);
}, $id);
}
Added: trunk/lib/core/Tiki/Profile/WriterHelper.php
===================================================================
--- trunk/lib/core/Tiki/Profile/WriterHelper.php (rev 0)
+++ trunk/lib/core/Tiki/Profile/WriterHelper.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -0,0 +1,81 @@
+<?php
+// (c) Copyright 2002-2013 by authors of the Tiki Wiki CMS Groupware Project
+//
+// All Rights Reserved. See copyright.txt for details and a complete list of authors.
+// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
+// $Id$
+
+class Tiki_Profile_WriterHelper
+{
+ public static function type_colon_object(Tiki_Profile_Writer $writer, $object)
+ {
+ list($type, $id) = explode(':', $object, 2);
+
+ return $type . ':' . $writer->getReference($type, $id);
+ }
+
+ public static function type_in_param(Tiki_Profile_Writer $writer, $id, array $params)
+ {
+ if (isset($params['objType'])) {
+ return $writer->getReference($params['objType'], $id);
+ } elseif (isset($params['objectType'])) {
+ return $writer->getReference($params['objectType'], $id);
+ } elseif (isset($params['type'])) {
+ return $writer->getReference($params['type'], $id);
+ } else {
+ return $id;
+ }
+ }
+
+ public static function wiki_content(Tiki_Profile_Writer $writer, $content)
+ {
+ $tikilib = TikiLib::lib('tiki');
+ $parserlib = TikiLib::lib('parser');
+ $argumentParser = new WikiParser_PluginArgumentParser;
+ $matches = WikiParser_PluginMatcher::match($content);
+
+ $justReplace = false;
+ foreach ($matches as $match) {
+ if ($justReplaced) {
+ $justReplaced = false;
+ continue;
+ }
+
+ $pluginName = $match->getName();
+ $params = $argumentParser->parse($match->getArguments());
+ $params = preg_replace(array('/^"/', '/"$/'), '', $params);
+ $body = $match->getBody();
+
+ if ($info = $parserlib->plugin_info($pluginName)) {
+ foreach ($params as $paramName => & $paramValue) {
+ if (isset($info['params'][$paramName]['profile_reference'])) {
+ $paramInfo = $info['params'][$paramName];
+
+ if (isset($paramInfo['separator'])) {
+ $paramValue = $tikilib->multi_explode($paramInfo['separator'], $paramValue);
+ }
+
+ $paramValue = $writer->getReference($paramInfo['profile_reference'], $paramValue, $params);
+
+ if (isset($paramInfo['separator'])) {
+ $paramValue = $tikilib->multi_implode($paramInfo['separator'], $paramValue);
+ }
+ }
+ }
+
+ $match->replaceWithPlugin($pluginName, $params, $body);
+ $justReplaced = true;
+ }
+ }
+
+ return $matches->getText();
+ }
+
+ public static function tracker_field_string(Tiki_Profile_Writer $writer, $value)
+ {
+ return preg_replace_callback('/(\d+)/', function ($args) use ($writer) {
+ return $writer->getReference('tracker_field', $args[1]);
+ }, $value);
+ }
+}
+
Property changes on: trunk/lib/core/Tiki/Profile/WriterHelper.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Modified: trunk/lib/wiki-plugins/wikiplugin_addfreetag.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_addfreetag.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_addfreetag.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -22,6 +22,7 @@
'filter' => 'text',
'default' => null,
'since' => '8.0',
+ 'profile_reference' => 'type_colon_object',
),
),
);
Modified: trunk/lib/wiki-plugins/wikiplugin_addrelation.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_addrelation.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_addrelation.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -32,6 +32,7 @@
'filter' => 'text',
'default' => null,
'since' => '8.0',
+ 'profile_reference' => 'type_colon_object',
),
'target_object' => array(
'required' => false,
@@ -40,6 +41,7 @@
'filter' => 'text',
'default' => null,
'since' => '8.0',
+ 'profile_reference' => 'type_colon_object',
),
'label_add' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_addtocart.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_addtocart.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_addtocart.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -22,14 +22,14 @@
'name' => tra('Product code'),
'description' => tra('Unique identifier for the product. Two products with the same code will be the same and the information used will be the one of the first in.'),
'filter' => 'text',
- 'default' => ''
+ 'default' => '',
),
'description' => array(
'required' => true,
'name' => tra('Description'),
'description' => tra('Label for the product in the cart.'),
'filter' => 'text',
- 'default' => ''
+ 'default' => '',
),
'producttype' => array(
'required' => false,
@@ -43,77 +43,77 @@
'name' => tra('Product Class'),
'description' => tra('The class the product belongs to, can be used to limit how gift cards are used'),
'filter' => 'text',
- 'default' => ''
+ 'default' => '',
),
'productbundle' => array(
'required' => false,
'name' => tra('Product Bundle'),
'description' => tra('The bundle the product belongs to, can be used to limit how gift cards are used, will automatically add other products in same class to cart'),
'filter' => 'text',
- 'default' => ''
+ 'default' => '',
),
'bundleclass' => array(
'required' => false,
'name' => tra('Bundle Class'),
'description' => tra('The class the bundle belongs to, can be used to limit how gift cards are used'),
'filter' => 'text',
- 'default' => ''
+ 'default' => '',
),
'price' => array(
'required' => true,
'name' => tra('Price'),
'description' => tra('The price to charge for the item.'),
'filter' => 'text',
- 'default' => ''
+ 'default' => '',
),
'href' => array(
'required' => false,
'name' => tra('Location'),
'description' => tra('URL of the product\'s information. The URL may be relative or absolute (begin with http://).'),
'filter' => 'url',
- 'default' => ''
+ 'default' => '',
),
'label' => array(
'required' => false,
'name' => tra('Button label'),
'description' => tra('Text for the submit button. default: "Add to cart"'),
'filter' => 'text',
- 'default' => 'Add to cart'
+ 'default' => 'Add to cart',
),
'eventcode' => array(
- 'required' => false,
- 'name' => tra('Associated event code'),
- 'description' => tra('Unique identifier for the event that is associated to the product.'),
- 'filter' => 'text',
- 'default' => ''
- ),
+ 'required' => false,
+ 'name' => tra('Associated event code'),
+ 'description' => tra('Unique identifier for the event that is associated to the product.'),
+ 'filter' => 'text',
+ 'default' => '',
+ ),
'autocheckout' => array(
'required' => false,
'name' => tra('Automatically checkout'),
'description' => tra('Automatically checkout for purchase and send user to pay (this is disabled when there is already something in the cart)'),
'filter' => 'text',
- 'default' => 'n'
+ 'default' => 'n',
),
'onbehalf' => array(
'required' => false,
'name' => tra('Buy on behalf of'),
'description' => tra('Allows the selection of user to make purchase on behalf of'),
'filter' => 'text',
- 'default' => 'n'
+ 'default' => 'n',
),
'forceanon' => array(
'required' => false,
'name' => tra('Shop as anonymous always'),
'description' => tra('Add to cart as anonymous shopper even if logged in'),
'filter' => 'text',
- 'default' => 'n'
+ 'default' => 'n',
),
'forwardafterfree' => array(
'required' => false,
'name' => tra('Forward to this URL after free purchase'),
'description' => tra('Forward to this URL after free purchase'),
'filter' => 'url',
- 'default' => ''
+ 'default' => '',
),
'giftcertificate'=> array(
'required' => false,
@@ -125,28 +125,29 @@
array('text' => '', 'value' => ''),
array('text' => tra('Yes'), 'value' => 'y'),
array('text' => tra('No'), 'value' => 'n')
- )
+ ),
),
'exchangeorderitemid' => array(
'required' => false,
'name' => tra('Order Item ID to exchange product'),
'description' => tra('Used in conjunction with exchange feature'),
'filter' => 'int',
- 'default' => ''
+ 'default' => '',
+ 'profile_reference' => 'tracker_item',
),
'exchangetoproductid' => array(
'required' => false,
'name' => tra('Product ID to exchange to'),
'desctiption' => tra('Used in conjunction with exchange feature'),
'filter' => 'int',
- 'default' => ''
+ 'default' => '',
),
'exchangeorderamount' => array(
'required' => false,
'name' => tra('Amount of new product to exchange for'),
'description' => tra('Should normally be set to the amount of products in the order being exchanged'),
'filter' => 'int',
- 'default' => 1
+ 'default' => 1,
),
'ajaxaddtocart' => array(
'required' => false,
@@ -158,7 +159,7 @@
array('text' => '', 'value' => ''),
array('text' => tra('Yes'), 'value' => 'y'),
array('text' => tra('No'), 'value' => 'n')
- )
+ ),
),
),
);
Modified: trunk/lib/wiki-plugins/wikiplugin_addtogooglecal.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_addtogooglecal.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_addtogooglecal.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -24,7 +24,8 @@
'filter' => 'digits',
'default' => '',
'since' => '6.0',
- ),
+ 'profile_reference' => 'calendar',
+ ),
'iconstyle' => array(
'required' => false,
'name' => tra('Icon Style'),
Modified: trunk/lib/wiki-plugins/wikiplugin_alink.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_alink.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_alink.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -20,14 +20,15 @@
'required' => true,
'name' => tra('Anchor Name'),
'description' => tra('The anchor name as defined in the ANAME plugin.'),
- 'default' => ''
+ 'default' => '',
),
'pagename' => array(
'required' => false,
'name' => tra('Page Name'),
'description' => tra('The name of the wiki page containing the anchor. If empty, the anchor name will be searched for on the wiki page where the plugin is used.'),
'filter' => 'pagename',
- 'default' => ''
+ 'default' => '',
+ 'profile_reference' => 'wiki_page',
),
),
);
Modified: trunk/lib/wiki-plugins/wikiplugin_article.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_article.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_article.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -20,14 +20,15 @@
'name' => tra('Field'),
'description' => tra('The article field to display. Default field is Heading.'),
'filter' => 'word',
- 'default' => 'heading'
+ 'default' => 'heading',
),
'Id' => array(
'required' => false,
'name' => tra('Article ID'),
'description' => tra('The article to display. If no value is provided, most recent article will be used.'),
'filter' => 'digits',
- 'default' => ''
+ 'default' => '',
+ 'profile_reference' => 'article',
),
),
);
Modified: trunk/lib/wiki-plugins/wikiplugin_articles.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_articles.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_articles.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -32,50 +32,53 @@
'name' => tra('Maximum Displayed'),
'description' => tra('The number of articles to display in the list (no max set by default)') . '. ' . tra('If Pagination is set to y (Yes), this will determine the amount of articles per page'),
'filter' => 'int',
- 'default' => -1
+ 'default' => -1,
),
'topic' => array(
'required' => false,
'name' => tra('Topic Name Filter'),
'description' => tra('Filter the list of articles by topic. Example: ') . '[!]topic+topic+topic',
'filter' => 'striptags',
- 'default' => ''
+ 'default' => '',
),
'topicId' => array(
'required' => false,
'name' => tra('Topic ID Filter'),
'description' => tra('Filter the list of articles by topic ID. Example: ') . '[!]topicId+topicId+topicId',
'filter' => 'striptags',
- 'default' => ''
+ 'default' => '',
+ 'profile_reference' => 'article_topic',
),
'type' => array(
'required' => false,
'name' => tra('Type Filter'),
'description' => tra('Filter the list of articles by types. Example: ') . '[!]type+type+type',
'filter' => 'striptags',
- 'default' => ''
+ 'default' => '',
+ 'profile_reference' => 'article_type',
),
'categId' => array(
'required' => false,
'name' => tra('Category ID'),
'description' => tra('List of category IDs, separated by |. Only articles in all these categories are listed'),
'filter' => 'digits',
+ 'default' => '',
+ 'profile_reference' => 'category',
'separator' => '|',
- 'default' => ''
),
'lang' => array(
'required' => false,
'name' => tra('Language'),
'description' => tra('List only articles in this language'),
'filter' => 'lang',
- 'default' => ''
+ 'default' => '',
),
'sort' => array(
'required' => false,
'name' => tra('Sort order'),
'description' => tra('The column and order of the sort in columnName_asc or columnName_desc format. Defaults to "publishDate_desc" (other column examples are "title", "lang", "articleId", "authorName" & "topicName")').'. '.tra('Use random to have random items.'),
'filter' => 'word',
- 'default' => 'publishDate_desc'
+ 'default' => 'publishDate_desc',
),
'order' => array(
'required' => false,
@@ -83,7 +86,7 @@
'description' => tra('List of ArticleId that must appear in this order if present'),
'filter' => 'digits',
'separator' => '|',
- 'default' => ''
+ 'default' => '',
),
'articleId' => array(
'required' => false,
@@ -91,7 +94,8 @@
'description' => tra('List of ArticleId to display separated by |'),
'filter' => 'digits',
'separator' => '|',
- 'default' => ''
+ 'default' => '',
+ 'profile_reference' => 'article',
),
'notArticleId' => array(
'required' => false,
@@ -99,7 +103,8 @@
'description' => tra('List of ArticleId that can not be displayed separated by |'),
'filter' => 'digits',
'separator' => '|',
- 'default' => ''
+ 'default' => '',
+ 'profile_reference' => 'article',
),
'quiet' => array(
'required' => false,
@@ -110,7 +115,7 @@
'options' => array(
array('text' => '', 'value' => ''),
array('text' => tra('Yes'), 'value' => 'y'),
- array('text' => tra('No'), 'value' => 'n')
+ array('text' => tra('No'), 'value' => 'n'),
),
),
'titleonly' => array(
@@ -122,7 +127,7 @@
'options' => array(
array('text' => '', 'value' => ''),
array('text' => tra('Yes'), 'value' => 'y'),
- array('text' => tra('No'), 'value' => 'n')
+ array('text' => tra('No'), 'value' => 'n'),
),
),
'fullbody' => array(
@@ -134,7 +139,7 @@
'options' => array(
array('text' => '', 'value' => ''),
array('text' => tra('Yes'), 'value' => 'y'),
- array('text' => tra('No'), 'value' => 'n')
+ array('text' => tra('No'), 'value' => 'n'),
),
),
'start' => array(
@@ -142,21 +147,21 @@
'name' => tra('Starting Article'),
'description' => tra('The article number that the list should start with (starts with first article by default)') . '. ' . tra('This will not work if Pagination is used.'),
'filter' => 'int',
- 'default' => 0
+ 'default' => 0,
),
'dateStart' => array(
'required' => false,
'name' => tra('Start Date'),
'description' => tra('Earliest date to select articles from.') . tra(' (YYYY-MM-DD)'),
'filter' => 'date',
- 'default' => ''
+ 'default' => '',
),
'dateEnd' => array(
'required' => false,
'name' => tra('End date'),
'description' => tra('Latest date to select articles from.') . tra(' (YYYY-MM-DD)'),
'filter' => 'date',
- 'default' => ''
+ 'default' => '',
),
'periodQuantity' => array(
'required' => false,
@@ -187,7 +192,7 @@
'options' => array(
array('text' => '', 'value' => ''),
array('text' => tra('Yes'), 'value' => 'y'),
- array('text' => tra('No'), 'value' => 'n')
+ array('text' => tra('No'), 'value' => 'n'),
),
),
'containerClass' => array(
@@ -195,7 +200,7 @@
'name' => tra('Container class'),
'description' => tra('CSS Class to add to the container DIV.article. (Default="wikiplugin_articles")'),
'filter' => 'striptags',
- 'default' => 'wikiplugin_articles'
+ 'default' => 'wikiplugin_articles',
),
'largefirstimage' => array(
'required' => false,
@@ -206,14 +211,14 @@
'options' => array(
array('text' => '', 'value' => ''),
array('text' => tra('Yes'), 'value' => 'y'),
- array('text' => tra('No'), 'value' => 'n')
+ array('text' => tra('No'), 'value' => 'n'),
),
),
'urlparam' => array(
'required' => false,
'name' => tra('Additional URL Param to the link to read article'),
'filter' => 'striptags',
- 'default' => ''
+ 'default' => '',
),
'actions' => array(
'required' => false,
@@ -227,7 +232,7 @@
'description' => tra('User or pipe separated list of two letter language codes for additional languages to display. List pages with no language or with a missing translation in one of the language'),
'filter' => 'alpha',
'separator' => '|',
- 'default' => ''
+ 'default' => '',
),
),
);
Modified: trunk/lib/wiki-plugins/wikiplugin_attach.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_attach.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_attach.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -19,19 +19,20 @@
'required' => false,
'name' => tra('Name'),
'description' => tra('File name of the attached file to link to. Either name, file, id or num can be used to identify a single attachment'),
- 'default' => ''
+ 'default' => '',
),
'file' =>array(
'required' => false,
'name' => tra('File'),
'description' => tra('Same as name'),
- 'default' => ''
+ 'default' => '',
),
'page' => array(
'required' => false,
'name' => tra('Page'),
'description' => tra('Name of the wiki page the file is attached to. If left empty when the plugin is used on a wiki page, this defaults to that wiki page.'),
- 'default' => ''
+ 'default' => '',
+ 'profile_reference' => 'wiki_page',
),
'showdesc' => array(
'required' => false,
@@ -41,7 +42,7 @@
'options' => array(
array('text' => '', 'value' => ''),
array('text' => tra('Yes'), 'value' => 1),
- array('text' => tra('No'), 'value' => 0)
+ array('text' => tra('No'), 'value' => 0),
),
),
'bullets' => array(
@@ -52,7 +53,7 @@
'options' => array(
array('text' => '', 'value' => ''),
array('text' => tra('Yes'), 'value' => 1),
- array('text' => tra('No'), 'value' => 0)
+ array('text' => tra('No'), 'value' => 0),
),
),
'image' =>array(
@@ -63,7 +64,7 @@
'options' => array(
array('text' => '', 'value' => ''),
array('text' => tra('Yes'), 'value' => 1),
- array('text' => tra('No'), 'value' => 0)
+ array('text' => tra('No'), 'value' => 0),
),
),
'inline' =>array(
@@ -74,7 +75,7 @@
'options' => array(
array('text' => '', 'value' => ''),
array('text' => tra('Yes'), 'value' => 1),
- array('text' => tra('No'), 'value' => 0)
+ array('text' => tra('No'), 'value' => 0),
),
),
'all' => array(
@@ -85,14 +86,14 @@
'options' => array(
array('text' => '', 'value' => ''),
array('text' => tra('Yes'), 'value' => 1),
- array('text' => tra('No'), 'value' => 0)
+ array('text' => tra('No'), 'value' => 0),
),
),
'num' => array(
'required' => false,
'name' => tra('Order Number'),
'description' => tra('Identifies the attachment to link to by the order of the attachment in the list of attachments to a page instead of by file name or ID. Either name, file, id or num can be used to identify a single attachment.'),
- 'default' => ''
+ 'default' => '',
),
'id' => array(
'required' => false,
@@ -107,7 +108,7 @@
'options' => array(
array('text' => '', 'value' => ''),
array('text' => tra('Yes'), 'value' => 1),
- array('text' => tra('No'), 'value' => 0)
+ array('text' => tra('No'), 'value' => 0),
),
),
'icon' =>array(
@@ -118,7 +119,7 @@
'options' => array(
array('text' => '', 'value' => ''),
array('text' => tra('Yes'), 'value' => 1),
- array('text' => tra('No'), 'value' => 0)
+ array('text' => tra('No'), 'value' => 0),
),
),
Modified: trunk/lib/wiki-plugins/wikiplugin_author.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_author.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_author.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -20,14 +20,14 @@
'name' => tra('User Name'),
'description' => tra('User name of the user who wrote the text.'),
'default' => '',
- 'filter' => 'username'
+ 'filter' => 'username',
),
'deleted_by' => array(
'required' => false,
'name' => tra('Deleted by User'),
'description' => tra('User name of the user who deleted the text.'),
'default' => '',
- 'filter' => 'username'
+ 'filter' => 'username',
),
'visible' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_avatar.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_avatar.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_avatar.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -18,11 +18,9 @@
'page' => array(
'required' => false,
'name' => tra('Page'),
- 'description' => tra(
- 'The wiki page the avatar will link to. If empty and the user\'s information is public,
- then the avatar will link automatically the that user\'s user information page'
- ),
- 'default' => ''
+ 'description' => tra('The wiki page the avatar will link to. If empty and the user\'s information is public, then the avatar will link automatically the that user\'s user information page'),
+ 'default' => '',
+ 'profile_reference' => 'wiki_page',
),
'float' => array(
'required' => false,
@@ -32,14 +30,14 @@
'options' => array(
array('text' => '', 'value' => ''),
array('text' => tra('Right'), 'value' => 'right'),
- array('text' => tra('Left'), 'value' => 'left')
+ array('text' => tra('Left'), 'value' => 'left'),
),
),
'fullsize' => array(
'required' => false,
'name' => tra('Show fullsize File Gallery image'),
'description' => tra('If fullsize images are stored in the File Gallery, show the full size one.'),
- 'default' => 'n'
+ 'default' => 'n',
),
),
);
Modified: trunk/lib/wiki-plugins/wikiplugin_backlinks.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_backlinks.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_backlinks.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -119,21 +119,25 @@
'name' => tra('Page'),
'description' => tra('The page links will point to. Default value is the current page.'),
'advanced' => true,
- 'default' => '[pagename]'
+ 'default' => '[pagename]',
+ 'profile_reference' => 'wiki_page',
),
'info' => array(
'required' => false,
'name' => tra('Displayed Information'),
'description' => tra('Pipe separated list of fields to display. ex: hits|user'),
'advanced' => true,
- 'default' => false
+ 'separator' => '|',
+ 'default' => false,
),
'exclude' => array(
'required' => false,
'name' => tra('Excluded pages'),
'description' => tra('Pipe separated list of pages to be excluded from the listing. ex: HomePage|Sandbox'),
'advanced' => true,
- 'default' => ''
+ 'default' => '',
+ 'separator' => '|',
+ 'profile_reference' => 'wiki_page',
),
'include_self' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_bigbluebutton.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_bigbluebutton.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_bigbluebutton.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -21,42 +21,42 @@
'name' => tra('Meeting'),
'description' => tra('MeetingID for BigBlueButton. This is a 5 digit number, starting with a 7. Ex.: 77777 or 71111.'),
'filter' => 'text',
- 'default' => ''
+ 'default' => '',
),
'prefix' => array(
'required' => false,
'name' => tra('Anonymous prefix'),
'description' => tra('Unregistered users will get this token prepended to their name.'),
'filter' => 'text',
- 'default' => ''
+ 'default' => '',
),
'welcome' => array(
'required' => false,
'name' => tra('Welcome Message'),
'description' => tra('A message to be provided when someone enters the room.'),
'filter' => 'text',
- 'default' => ''
+ 'default' => '',
),
'number' => array(
'required' => false,
'name' => tra('Dial Number'),
'description' => tra('The phone-in support number to join from traditional phones.'),
'filter' => 'text',
- 'default' => ''
+ 'default' => '',
),
'voicebridge' => array(
'required' => false,
'name' => tra('Voice Bridge'),
'description' => tra('Code to enter for phone attendees to join the room. Typically, the same 5 digits of the MeetingID.'),
'filter' => 'digits',
- 'default' => ''
+ 'default' => '',
),
'logout' => array(
'required' => false,
'name' => tra('Log-out URL'),
'description' => tra('URL to which the user will be redirected when logging out from BigBlueButton.'),
'filter' => 'url',
- 'default' => ''
+ 'default' => '',
),
'recording' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_bloglist.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_bloglist.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_bloglist.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -19,20 +19,21 @@
'name' => tra('Blog ID'),
'description' => tra('The ID number of the blog on the site you wish to list posts from'),
'filter' => 'digits',
- 'default' => ''
+ 'default' => '',
+ 'profile_reference' => 'blog',
),
'Items' => array(
'required' => false,
'name' => tra('Maximum Items'),
'description' => tra('Maximum number of entries to list (no maximum set by default)'),
'filter' => 'digits',
- 'default' => ''
+ 'default' => '',
),
'author' => array(
'required' => false,
'name' => tra('Author'),
'description' => tra('Only display posts created by this user (all posts listed by default)'),
- 'default' => ''
+ 'default' => '',
),
'simpleList' => array(
'required' => false,
@@ -45,79 +46,79 @@
array('text' => tra('No'), 'value' => 'n')
),
),
- 'charCount' => array(
- 'required' => false,
- 'name' => tra('Char Count'),
- 'description' => tra('Number of characters to display if not a simple list. (defaults to all)'),
- 'filter' => 'digits',
- 'parent' => array('name' => 'simpleList', 'value' => 'n'),
- 'default' => ''
- ),
- 'wordBoundary' => array(
- 'required' => false,
- 'name' => tra('Word Boundary'),
- 'description' => tra('If not a simple list and Char Count is non-zero, then marking this as yes will break on word boundaries only.'),
- 'default' => 'y',
- 'options' => array(
- array('text' => tra('Yes'), 'value' => 'y'),
- array('text' => tra('No'), 'value' => 'n')
- ),
- 'parent' => array('name' => 'simpleList', 'value' => 'n'),
- ),
- 'ellipsis' => array(
- 'required' => false,
- 'name' => tra('Ellipsis'),
- 'description' => tra('If not a simple list and Char Count is non-zero, then marking this as yes will put ellipsis (...) at end of text (default=y).'),
- 'default' => 'y',
- 'options' => array(
- array('text' => '', 'value' => ''),
- array('text' => tra('Yes'), 'value' => 'y'),
- array('text' => tra('No'), 'value' => 'n')
- ),
- 'parent' => array('name' => 'simpleList', 'value' => 'n'),
- ),
- 'more' => array(
- 'required' => false,
- 'name' => tra('More'),
- 'description' => tra('If not a simple list and Char Count is non-zero, then marking this as yes will put a More link to the full entry (default=y).'),
- 'default' => 'y',
- 'options' => array(
- array('text' => tra('Yes'), 'value' => 'y'),
- array('text' => tra('No'), 'value' => 'n')
- ),
- 'parent' => array('name' => 'simpleList', 'value' => 'n'),
- ),
- 'showIcons' => array(
- 'required' => false,
- 'name' => tra('Show Icons'),
- 'description' => tra('If not a simple list marking this as no will prevent the "edit" and "print" type icons from displaying (default=y)'),
- 'default' => 'y',
- 'options' => array(
+ 'charCount' => array(
+ 'required' => false,
+ 'name' => tra('Char Count'),
+ 'description' => tra('Number of characters to display if not a simple list. (defaults to all)'),
+ 'filter' => 'digits',
+ 'parent' => array('name' => 'simpleList', 'value' => 'n'),
+ 'default' => '',
+ ),
+ 'wordBoundary' => array(
+ 'required' => false,
+ 'name' => tra('Word Boundary'),
+ 'description' => tra('If not a simple list and Char Count is non-zero, then marking this as yes will break on word boundaries only.'),
+ 'default' => 'y',
+ 'options' => array(
array('text' => tra('Yes'), 'value' => 'y'),
- array('text' => tra('No'), 'value' => 'n')
- ),
- 'parent' => array('name' => 'simpleList', 'value' => 'n'),
- ),
+ array('text' => tra('No'), 'value' => 'n')
+ ),
+ 'parent' => array('name' => 'simpleList', 'value' => 'n'),
+ ),
+ 'ellipsis' => array(
+ 'required' => false,
+ 'name' => tra('Ellipsis'),
+ 'description' => tra('If not a simple list and Char Count is non-zero, then marking this as yes will put ellipsis (...) at end of text (default=y).'),
+ 'default' => 'y',
+ 'options' => array(
+ array('text' => '', 'value' => ''),
+ array('text' => tra('Yes'), 'value' => 'y'),
+ array('text' => tra('No'), 'value' => 'n')
+ ),
+ 'parent' => array('name' => 'simpleList', 'value' => 'n'),
+ ),
+ 'more' => array(
+ 'required' => false,
+ 'name' => tra('More'),
+ 'description' => tra('If not a simple list and Char Count is non-zero, then marking this as yes will put a More link to the full entry (default=y).'),
+ 'default' => 'y',
+ 'options' => array(
+ array('text' => tra('Yes'), 'value' => 'y'),
+ array('text' => tra('No'), 'value' => 'n')
+ ),
+ 'parent' => array('name' => 'simpleList', 'value' => 'n'),
+ ),
+ 'showIcons' => array(
+ 'required' => false,
+ 'name' => tra('Show Icons'),
+ 'description' => tra('If not a simple list marking this as no will prevent the "edit" and "print" type icons from displaying (default=y)'),
+ 'default' => 'y',
+ 'options' => array(
+ array('text' => tra('Yes'), 'value' => 'y'),
+ array('text' => tra('No'), 'value' => 'n')
+ ),
+ 'parent' => array('name' => 'simpleList', 'value' => 'n'),
+ ),
'dateStart' => array(
'required' => false,
'name' => tra('Start Date'),
'description' => tra('Earliest date to select posts from.') . ' (YYYY-MM-DD)',
'filter' => 'date',
- 'default' => ''
+ 'default' => '',
),
'dateEnd' => array(
'required' => false,
'name' => tra('End Date'),
'description' => tra('Latest date to select posts from.') . ' (YYYY-MM-DD)',
'filter' => 'date',
- 'default' => ''
+ 'default' => '',
),
'containerClass' => array(
'required' => false,
'name' => tra('Container Class'),
'description' => tra('CSS Class to add to the container DIV.article. (Default="wikiplugin_bloglist")'),
'filter' => 'striptags',
- 'default' => 'wikiplugin_bloglist'
+ 'default' => 'wikiplugin_bloglist',
),
),
);
Modified: trunk/lib/wiki-plugins/wikiplugin_button.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_button.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_button.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -26,11 +26,11 @@
),
'_class' => array(
'required' => false,
- 'name' => tra('CSS Class'),
- 'description' => tra('CSS class for the button'),
- 'filter' => 'text',
- 'default' => '',
- ),
+ 'name' => tra('CSS Class'),
+ 'description' => tra('CSS class for the button'),
+ 'filter' => 'text',
+ 'default' => '',
+ ),
'_text' => array(
'required' => false,
'name' => tra('Label'),
Modified: trunk/lib/wiki-plugins/wikiplugin_calendar.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_calendar.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_calendar.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -20,6 +20,7 @@
'filter' => 'digits',
'separator' => ',',
'default' => '',
+ 'profile_reference' => 'calendar',
),
'viewlist' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_carousel.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_carousel.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_carousel.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -23,6 +23,7 @@
'filter' => 'digits',
'accepted' => 'ID',
'default' => '',
+ 'profile_reference' => 'file_gallery',
),
'sort_mode' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_category.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_category.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_category.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -21,6 +21,7 @@
'filter' => 'digits',
'separator' => '+',
'default' => '',
+ 'profile_reference' => 'category',
),
'types' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_categorytransition.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_categorytransition.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_categorytransition.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -25,6 +25,7 @@
'description' => tra('Object ID'),
'filter' => 'text',
'default' => '',
+ 'profile_reference' => 'type_in_param',
),
'redirect' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_chart.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_chart.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_chart.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -19,6 +19,7 @@
'required' => true,
'name' => tra('Sheet ID'),
'description' => tra('Data sheet ID'),
+ 'profile_reference' => 'sheet',
),
'type' => array(
'required' => true,
Modified: trunk/lib/wiki-plugins/wikiplugin_colorbox.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_colorbox.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_colorbox.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -23,7 +23,8 @@
'filter' => 'digits',
'accepted' => 'ID',
'default' => '',
- 'since' => '5.0'
+ 'since' => '5.0',
+ 'profile_reference' => 'file_gallery',
),
'galId' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_comment.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_comment.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_comment.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -45,10 +45,12 @@
'description' => tra('Object ID'),
'filter' => 'int',
'default' => tr('The current wiki page you have added the plugin to'),
+ 'profile_reference' => 'type_in_param',
),
)
);
}
+
function wikiplugin_comment($data, $params)
{
global $smarty, $page;
Modified: trunk/lib/wiki-plugins/wikiplugin_convene.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_convene.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_convene.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -29,6 +29,7 @@
'description' => tra('ID number for the site calendar where to store the date for the events with maximum votes'),
'filter' => 'digits',
'default' => '',
+ 'profile_reference' => 'calendar',
),
'minvotes' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_customsearch.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_customsearch.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_customsearch.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -23,6 +23,7 @@
'description' => tra('Wiki page where search user interface template is found'),
'filter' => 'pagename',
'default' => '',
+ 'profile_reference' => 'wiki_page',
),
'id' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_datachannel.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_datachannel.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_datachannel.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -25,13 +25,14 @@
'name' => tra('Channel Name'),
'description' => tra('Name of the channel as registered by the administrator.'),
'default' => '',
+ 'profile_reference' => 'datachannel',
),
'returnURI' => array(
'required' => false,
'name' => tra('Return URL'),
'description' => tra('URL to go to after data channel has run. Defaults to current page.'),
'filter' => 'pagename',
- 'default' => '$_SERVER[\'HTTP_REFERER\']',
+ 'default' => '',
),
'quietReturn' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_dialog.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_dialog.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_dialog.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -86,6 +86,7 @@
'description' => tra('Wiki page to use as dialog body.'),
'filter' => 'pagename',
'default' => '',
+ 'profile_reference' => 'wiki_page',
),
'openAction' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_draw.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_draw.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_draw.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -22,7 +22,8 @@
'filter' => 'digits',
'accepted' => ' ID number',
'default' => '',
- 'since' => '7.1'
+ 'since' => '7.1',
+ 'profile_reference' => 'file',
),
'width' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_events.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_events.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_events.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -20,6 +20,7 @@
'name' => tra('Calendar IDs'),
'description' => tra('ID numbers for the site calendars whose events are to be displayed, separated by vertical bars (|)'),
'default' => '',
+ 'profile_reference' => 'calendar',
),
'maxdays' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_favorite.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_favorite.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_favorite.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -27,6 +27,7 @@
'description' => tra('Object ID'),
'filter' => 'text',
'default' => '',
+ 'profile_reference' => 'type_in_param',
),
)
);
Modified: trunk/lib/wiki-plugins/wikiplugin_file.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_file.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_file.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -33,10 +33,7 @@
'name' => array(
'required' => true,
'name' => tra('Name'),
- 'description' => tra(
- 'Identify an attachment by entering its file name, which will show as a link to the file.
- If the page parameter is empty, it must be a file name of an attachment to the page where the plugin is used.'
- ),
+ 'description' => tra('Identify an attachment by entering its file name, which will show as a link to the file. If the page parameter is empty, it must be a file name of an attachment to the page where the plugin is used.'),
'default' => '',
'parent' => array('name' => 'type', 'value' => 'attachment'),
),
@@ -55,6 +52,7 @@
'parent' => array('name' => 'type', 'value' => 'attachment'),
'default' => '',
'advanced' => true,
+ 'profile_reference' => 'wiki_page',
),
'showdesc' => array(
'required' => false,
@@ -91,6 +89,7 @@
'filter' => 'digits',
'default' => '',
'parent' => array('name' => 'type', 'value' => 'gallery'),
+ 'profile_reference' => 'file',
),
'date' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_files.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_files.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_files.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -23,6 +23,7 @@
'description' => tra('To list only files contained in these file galleries (multiple IDs separated by colon)'),
'default' => '',
'separator' => ':',
+ 'profile_reference' => 'file_gallery',
),
'categId' => array(
'required' => false,
@@ -30,6 +31,7 @@
'description' => tra('To restrict files listed to those belonging to one or more categories. Enter a single category or ID or list of them separated by colon'),
'default' => '',
'advanced' => true,
+ 'profile_reference' => 'category',
),
'fileId' => array(
'required' => false,
@@ -39,6 +41,7 @@
'area' => 'fgal_picker_id',
'default' => '',
'separator' => ':',
+ 'profile_reference' => 'file',
),
'sort' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_flash.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_flash.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_flash.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -43,6 +43,7 @@
'description' => tra('Id of a file from a podcast gallery - will work only with podcast gallery'),
'parent' => array('name' => 'type', 'value' => 'fileId'),
'default' => '',
+ 'profile_reference' => 'file',
),
'youtube' => array(
'required' => true,
Modified: trunk/lib/wiki-plugins/wikiplugin_galleriffic.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_galleriffic.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_galleriffic.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -20,6 +20,7 @@
'filter' => 'digits',
'accepted' => 'ID',
'default' => '',
+ 'profile_reference' => 'file_gallery',
),
'sort_mode' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_groupmailcore.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_groupmailcore.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_groupmailcore.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -20,63 +20,71 @@
'required' => true,
'name' => tra('From Email'),
'description' => tra('Email address to report.'),
- 'default' => ''
+ 'default' => '',
),
'trackerId' => array(
'required' => true,
'name' => tra('Tracker Id'),
'description' => tra('Id of GroupMail Logs tracker (set up in alias by profile).'),
'filter' => 'digits',
- 'default' => ''
+ 'default' => '',
+ 'profile_reference' => 'tracker',
),
'fromFId' => array(
'required' => true,
'name' => tra('From Field Id'),
'description' => tra('Id of GroupMail Logs tracker field (usually set up in alias by profile).'),
'filter' => 'digits',
- 'default' => ''
+ 'default' => '',
+ 'profile_reference' => 'tracker_field',
),
'operatorFId' => array(
'required' => true,
'name' => tra('Operator Field Id'),
'description' => tra('Id of GroupMail Logs tracker field (usually set up in alias by profile).'),
'filter' => 'digits',
- 'default' => ''
+ 'default' => '',
+ 'profile_reference' => 'tracker_field',
),
'subjectFId' => array(
'required' => true,
'name' => tra('Subject Field Id'),
'description' => tra('Id of GroupMail Logs tracker field (usually set up in alias by profile).'),
'filter' => 'digits',
- 'default' => ''
+ 'default' => '',
+ 'profile_reference' => 'tracker_field',
),
'messageFId' => array(
'required' => true,
'name' => tra('Message Field Id'),
'description' => tra('Id of GroupMail Logs tracker field (usually set up in alias by profile).'),
'filter' => 'digits',
- 'default' => ''
+ 'default' => '',
+ 'profile_reference' => 'tracker_field',
),
'contentFId' => array(
'required' => true,
'name' => tra('Content Field Id'),
'description' => tra('Id of GroupMail Logs tracker field (usually set up in alias by profile).'),
'filter' => 'digits',
- 'default' => ''
+ 'default' => '',
+ 'profile_reference' => 'tracker_field',
),
'accountFId' => array(
'required' => true,
'name' => tra('Account Field Id'),
'description' => tra('Id of GroupMail Logs tracker field (usually set up in alias by profile).'),
'filter' => 'digits',
- 'default' => ''
+ 'default' => '',
+ 'profile_reference' => 'tracker_field',
),
'datetimeFId' => array(
'required' => true,
'name' => tra('Datetime Field Id'),
'description' => tra('Id of GroupMail Logs tracker field (usually set up in alias by profile).'),
'filter' => 'digits',
- 'default' => ''
+ 'default' => '',
+ 'profile_reference' => 'tracker_field',
),
),
);
Modified: trunk/lib/wiki-plugins/wikiplugin_hasbought.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_hasbought.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_hasbought.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -35,6 +35,7 @@
'description' => tra('Tracker from which to get passcode to check against'),
'filter' => 'text',
'default' => '',
+ 'profile_reference' => 'tracker',
),
'fieldId' => array(
'required' => true,
@@ -42,6 +43,7 @@
'description' => tra('Field ID from which to get passcode to check against'),
'filter' => 'text',
'default' => '',
+ 'profile_reference' => 'tracker_field',
),
'itemId' => array(
'required' => true,
@@ -49,6 +51,7 @@
'description' => tra('Item ID from which to get passcode to check against'),
'filter' => 'text',
'default' => '',
+ 'profile_reference' => 'tracker_item',
),
),
);
Modified: trunk/lib/wiki-plugins/wikiplugin_img.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_img.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_img.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -39,6 +39,7 @@
'filter' => 'striptags',
'default' => '',
'parent' => array('name' => 'type', 'value' => 'fileId'),
+ 'profile_reference' => 'file',
),
'id' => array(
'required' => true,
@@ -74,6 +75,7 @@
'advanced' => true,
'default' => '',
'parent' => array('name' => 'type', 'value' => 'fgalId'),
+ 'profile_reference' => 'file_gallery',
),
'attId' => array(
'required' => true,
Modified: trunk/lib/wiki-plugins/wikiplugin_include.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_include.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_include.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -21,6 +21,7 @@
'description' => tra('Wiki page name to include.'),
'filter' => 'pagename',
'default' => '',
+ 'profile_reference' => 'wiki_page',
),
'start' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_invite.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_invite.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_invite.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -29,6 +29,7 @@
'required' => false,
'name' => tra('Item ID'),
'description' => tra('Dropdown list will show the group related to this item ID (in group selector or creator field) by default'),
+ 'profile_reference' => 'tracker_item',
),
)
);
Modified: trunk/lib/wiki-plugins/wikiplugin_lastmod.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_lastmod.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_lastmod.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -18,6 +18,7 @@
'required' => false,
'name' => tra('Page'),
'description' => tra('Page name to display information of. Default value is current page.'),
+ 'profile_reference' => 'wiki_page',
),
),
);
Modified: trunk/lib/wiki-plugins/wikiplugin_listpages.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_listpages.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_listpages.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -52,6 +52,7 @@
'description' => tra('If set to a category identifier, restrict the pages displayed to those in the specified category.').' ' . tra('Example value:') . ' 42. ' . tra('If set to a list of category identifiers separated by colons (:), restrict the pages to those in any of the specified categories.') . ' ' . tra('Example value:') . ' 1:2. ' . tra('If set to a list of category identifiers separated by plus signs (+), only display a page if it is in all of the specified categories.') . ' ' . tra('Example value:') . ' 1+2. ' . tra('If set to a list of category identifiers separated by minus signs (-), only display a page if it is in the first specified category and not in any of the following categories.') . ' ' . tra('Example value:') . ' 1-2-3.',
'filter' => 'striptags',
'default' => '',
+ 'profile_reference' => 'category',
),
'structHead' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_miniquiz.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_miniquiz.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_miniquiz.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -20,6 +20,7 @@
'name' => tra('Tracker ID'),
'description' => tra('Numeric value representing the miniquiz tracker ID'),
'default' => '',
+ 'profile_reference' => 'tracker',
),
),
);
Modified: trunk/lib/wiki-plugins/wikiplugin_objecthits.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_objecthits.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_objecthits.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -19,6 +19,7 @@
'name' => tra('Object'),
'description' => tra('For a wiki page, the page name, for other object types: ID number + ? + object title'),
'default' => '',
+ 'profile_reference' => 'type_in_param',
),
'type' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_objectlink.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_objectlink.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_objectlink.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -27,6 +27,7 @@
'name' => tra('Object ID'),
'description' => tra('The item to display'),
'filter' => 'text',
+ 'profile_reference' => 'type_in_param',
),
),
);
Modified: trunk/lib/wiki-plugins/wikiplugin_pagetabs.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_pagetabs.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_pagetabs.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -29,7 +29,9 @@
'name' => tra('Wiki page names'),
'description' => tra('The wiki pages you would like to use in this plugin, optional, separate with pipe "|". Or a table with the class of "pagetabs" on the main page. On child pages use as a way to redirect to the parent.'),
'default' => '',
- 'filter' => 'striptags',
+ 'separator' => '|',
+ 'filter' => 'pagename',
+ 'profile_reference' => 'wiki_page',
),
),
);
@@ -42,7 +44,7 @@
++$pagetabsindex;
extract($params, EXTR_SKIP);
- $pages = json_encode(explode('|', $pages));
+ $pages = json_encode($pages);
$pageTabs = true;
Modified: trunk/lib/wiki-plugins/wikiplugin_perspective.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_perspective.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_perspective.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -19,15 +19,19 @@
'required' => false,
'name' => tra('Allowed Perspectives'),
'description' => tra('Pipe-separated list of identifiers of perspectives in which the block is shown.') . tra('Example value:') . '2|3|5',
- 'filter' => 'text',
- 'default' => ''
+ 'filter' => 'digits',
+ 'separator' => '|',
+ 'default' => '',
+ 'profile_reference' => 'perspective',
),
'notperspectives' => array(
'required' => false,
'name' => tra('Denied Perspectives'),
'description' => tra('Pipe-separated list of identifiers of perspectives in which the block is not shown.') . tra('Example value:') . '3|5|8',
- 'filter' => 'text',
- 'default' => ''
+ 'filter' => 'digits',
+ 'separator' => '|',
+ 'default' => '',
+ 'profile_reference' => 'perspective',
),
),
);
@@ -44,10 +48,10 @@
}
if (!empty($params['perspectives'])) {
- $perspectives = explode('|', $params['perspectives']);
+ $perspectives = $params['perspectives'];
}
if (!empty($params['notperspectives'])) {
- $notperspectives = explode('|', $params['notperspectives']);
+ $notperspectives = $params['notperspectives'];
}
if (empty($perspectives) && empty($notperspectives)) {
return '';
Modified: trunk/lib/wiki-plugins/wikiplugin_poll.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_poll.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_poll.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -20,7 +20,8 @@
'required' => true,
'name' => tra('Poll'),
'description' => tra('Numeric value representing the poll ID'),
- 'default' => ''
+ 'default' => '',
+ 'profile_reference' => 'poll',
),
'showtitle' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_prettytrackerviews.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_prettytrackerviews.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_prettytrackerviews.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -42,7 +42,8 @@
'required' => true,
'name' => tra('Item ID'),
'description' => tra('Set to ID of tracker item'),
- 'default' => ''
+ 'default' => '',
+ 'profile_reference' => 'tracker_item',
),
),
);
Modified: trunk/lib/wiki-plugins/wikiplugin_redirect.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_redirect.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_redirect.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -22,6 +22,7 @@
'description' => tra('Wiki page name to redirect to.'),
'filter' => 'pagename',
'default' => '',
+ 'profile_reference' => 'wiki_page',
),
'url' => array(
'required' => false,
@@ -36,6 +37,7 @@
'description' => tra('The ID of a perspective to switch to (requires feature_perspective).'),
'filter' => 'int',
'default' => '',
+ 'profile_reference' => 'perspective',
),
),
);
Modified: trunk/lib/wiki-plugins/wikiplugin_regex.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_regex.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_regex.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -21,6 +21,7 @@
'name' => tra('Page name'),
'description' => tra('Name of page containing search and replace expressions separated by two colons. Example of syntax on that page: /search pattern/::replacement text'),
'default' => 'pageName',
+ 'profile_reference' => 'wiki_page',
),
),
);
Modified: trunk/lib/wiki-plugins/wikiplugin_relations.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_relations.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_relations.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -32,6 +32,7 @@
'filter' => 'text',
'default' => null,
'since' => '8.0',
+ 'profile_reference' => 'type_colon_object',
),
'singlelist' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_rss.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_rss.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_rss.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -24,6 +24,7 @@
'filter' => 'int',
'description' => tra('List of feed IDs separated by colons. ex: feedId:feedId2'),
'default' => '',
+ 'profile_reference' => 'rss',
),
'max' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_sf.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_sf.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_sf.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -30,6 +30,7 @@
'description' => tra('SourceForge tracker ID (shows as atid in the URL of a tracker item'),
'filter' => 'digits',
'default' => '',
+ 'profile_reference' => 'tracker',
),
'itemid' => array(
'required' => true,
@@ -37,6 +38,7 @@
'description' => tra('SourceForge item ID (shows as aid in the URL of a tracker item'),
'filter' => 'digits',
'default' => '',
+ 'profile_reference' => 'tracker_item',
),
'title' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_sheet.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_sheet.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_sheet.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -23,7 +23,8 @@
'filter' => 'digits',
'accepted' => 'Sheet ID number',
'default' => '',
- 'since' => ''
+ 'since' => '',
+ 'profile_reference' => 'sheet',
),
'url' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_stat.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_stat.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_stat.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -43,6 +43,7 @@
'required' => false,
'name' => tra('Parent ID'),
'description' => tra('Enter a tracker ID to restrict stats to that tracker (for use with trackeritems only).'),
+ 'profile_reference' => 'tracker',
),
'lastday' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_subscribenewsletter.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_subscribenewsletter.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_subscribenewsletter.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -22,6 +22,7 @@
'description' => tra('Identification number (nlId) of the Newsletter that you want to allow the users to subscribe to'),
'filter' => 'digits',
'default' => '',
+ 'profile_reference' => 'newsletter',
),
'thanks' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_survey.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_survey.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_survey.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -21,12 +21,14 @@
'description' => tra('Id'),
'filter' => 'digits',
'default' => '',
+ 'profile_reference' => 'survey',
),
'page' => array(
'required' => false,
'name' => tra('Page'),
'description' => tra('Wiki Page to redirect the user after his vote'),
'default' => 'tiki-list_surveys.php',
+ 'profile_reference' => 'wiki_page',
),
'lang' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_titlesearch.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_titlesearch.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_titlesearch.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -38,6 +38,8 @@
'name' => tra('Exclude'),
'description' => tra('Pipe-separated list of page names to exclude from results.'),
'default' => '',
+ 'separator' => '|',
+ 'profile_reference' => 'wiki_page',
),
'noheader' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_toc.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_toc.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_toc.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -28,6 +28,7 @@
'required' => false,
'filter' => 'digits',
'default' => '',
+ 'profile_reference' => 'structure',
),
'order' => array(
'name' => tra('Order'),
@@ -81,6 +82,7 @@
'description' => tra('By default, the table of contents for the current page will be displayed. Alternate page may be provided.'),
'required' => false,
'default' => '',
+ 'profile_reference' => 'wiki_page',
),
),
);
Modified: trunk/lib/wiki-plugins/wikiplugin_tracker.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_tracker.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_tracker.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -22,12 +22,15 @@
'description' => tra('Numeric value representing the tracker ID'),
'filter' => 'digits',
'default' => '',
+ 'profile_reference' => 'tracker',
),
'fields' => array(
'required' => false,
'name' => tra('Fields'),
'description' => tra('Colon-separated list of field IDs to be displayed. Example: 2:4:5 If empty, all fields will be shown'),
'default' => '',
+ 'separator' => ':',
+ 'profile_reference' => 'tracker_field',
),
'action' => array(
'required' => false,
@@ -66,7 +69,7 @@
'description' => tra('Indicate mandatory fields with an asterisk (shown by default).'),
'filter' => 'alpha',
'default' => 'y',
- 'options' => array(
+ 'options' => array(
array('text' => '', 'value' => ''),
array('text' => tra('Yes'), 'value' => 'y'),
array('text' => tra('No'), 'value' => 'n')
@@ -90,7 +93,7 @@
'description' => tra('Embedded'),
'filter' => 'alpha',
'default' => 'n',
- 'options' => array(
+ 'options' => array(
array('text' => '', 'value' => ''),
array('text' => tra('Yes'), 'value' => 'y'),
array('text' => tra('No'), 'value' => 'n')
@@ -195,6 +198,7 @@
'description' => tra('ItemId allowing for editing an item'),
'filter' => 'digits',
'default' => '',
+ 'profile_reference' => 'tracker_item',
),
'ignoreRequestItemId' => array(
'required' => false,
@@ -220,6 +224,7 @@
'description' => tra('Name of the wiki page containing the template to display the tracker items.'),
'filter' => 'pagename',
'default' => '',
+ 'profile_reference' => 'wiki_page',
),
'newstatus' => array(
'required' => false,
@@ -248,6 +253,7 @@
'filter' => 'digits',
'separator' => ':',
'default' => '',
+ 'profile_reference' => 'tracker_field',
),
'autosavevalues' => array(
'required' => false,
@@ -264,6 +270,7 @@
'filter' => 'digits',
'separator' => ':',
'default' => '',
+ 'profile_reference' => 'tracker_field',
),
'registration' => array(
'required' => false,
@@ -283,6 +290,7 @@
'description' => tra('Output result to a new wiki page with the name taken from the input for the specified fieldId'),
'filter' => 'digits',
'default' => '',
+ 'profile_reference' => 'tracker_field',
),
'discarditem' => array(
'required' => false,
@@ -302,12 +310,15 @@
'description' => tra('Name of the wiki page containing the template to format the output to wiki page'),
'filter' => 'pagename',
'default' => '',
+ 'profile_reference' => 'wiki_page',
),
'fieldsfill' => array(
'required' => false,
'name' => tra('Multiple Fill Fields'),
'description' => tra('Colon-separated list of field IDs to be filled with multiple values, to create multiple items in one save. Example: 2:4:5 If empty, only one item will be created. Only for item creation'),
'default' => '',
+ 'separator' => ':',
+ 'profile_reference' => 'tracker_field',
),
'fieldsfillseparator' => array(
'required' => false,
@@ -544,7 +555,7 @@
} elseif (!empty($tpl)) {
$outf = $trklib->get_pretty_fieldIds($tpl, 'tpl', $outputPretty);
} elseif (!empty($fields)) {
- $outf = preg_split('/ *: */', $fields);
+ $outf = $fields;
}
if (!empty($_REQUEST['autosavefields'])) {
$autosavefields = explode(':', $_REQUEST['autosavefields']);
@@ -610,7 +621,7 @@
// If we create multiple items, get field Ids, default values and separator
if (!empty($fieldsfill)) {
- $fill_fields = preg_split('/ *: */', $fieldsfill); // Allow for superfluous spaces and ignore them
+ $fill_fields = $fieldsfill; // Allow for superfluous spaces and ignore them
$fill_flds = array('data' => array());
$fill_defaults = array();
$fill_flds_defaults = array(); // May be different from fill_defaults if some fields are not editable
Modified: trunk/lib/wiki-plugins/wikiplugin_trackercalendar.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_trackercalendar.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_trackercalendar.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -19,6 +19,7 @@
'required' => false,
'default' => 0,
'filter' => 'int',
+ 'profile_reference' => 'tracker',
),
'begin' => array(
'name' => tr('Begin date field'),
Modified: trunk/lib/wiki-plugins/wikiplugin_trackercomments.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_trackercomments.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_trackercomments.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -20,6 +20,7 @@
'description' => tra('Numeric value representing the tracker ID'),
'filter' => 'digits',
'default' => '',
+ 'profile_reference' => 'tracker',
),
'shownbitems' => array(
'required' => false,
@@ -27,7 +28,7 @@
'description' => tra('Determines whether the number of items will be shown (not shown by default)'),
'filter' => 'alpha',
'default' => '',
- 'options' => array(
+ 'options' => array(
array('text' => '', 'value' => ''),
array('text' => tra('Yes'), 'value' => 'y'),
array('text' => tra('No'), 'value' => 'n')
Modified: trunk/lib/wiki-plugins/wikiplugin_trackerfilter.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_trackerfilter.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_trackerfilter.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -9,13 +9,13 @@
{
require_once 'lib/wiki-plugins/wikiplugin_trackerlist.php';
$list = wikiplugin_trackerlist_info();
- $params = array_merge(
- array(
- 'filters' => array(
+ $params = array_merge(array(
+ 'filters' => array(
'required' => true,
'name' => tra('Filters'),
'description' => tra('The list of fields that can be used as filters along with their formats. The field number and format are separated by a / and multile fields are separated by ":". Format choices are: d - dropdown; r - radio buttons; m - multiple choice dropdown; c - checkbox; t - text with wild characters; T - exact text match; i - initials; sqlsearch - advanced search; >, <, >=, <= - greater than, less than, greater than or equal, less than or equal. Example:') . '2/d:4/r:5:(6:7)/sqlsearch',
- 'default' => ''
+ 'default' => '',
+ 'profile_reference' => 'tracker_field_string',
),
'action' => array(
'required' => false,
@@ -35,52 +35,51 @@
array('text' => tra('No'), 'value' => 'n')
)
),
- 'line' => array(
- 'required' => false,
- 'name' => tra('Line'),
- 'description' => tra('Displays all the filters on the same line (not shown on same line by default)'),
- 'filter' => 'alpha',
- 'default' => 'n',
- 'options' => array(
- array('text' => '', 'value' => ''),
- array('text' => tra('Yes'), 'value' => 'y'),
- array('text' => tra('Yes with field label in dropdown'), 'value' => 'in'),
- array('text' => tra('No'), 'value' => 'n')
- )
- ),
- 'noflipflop' => array(
- 'required' => false,
- 'name' => tra('No Toggle'),
- 'description' => tra('The toggle button to show/hide filters will not be shown if set to y (Yes). Default is to show the toggle.'),
- 'filter' => 'alpha',
- 'default' => 'n',
- 'options' => array(
- array('text' => '', 'value' => ''),
- array('text' => tra('Yes'), 'value' => 'y'),
- array('text' => tra('No'), 'value' => 'n')
- )
- ),
- 'export_action' => array(
- 'required' => false,
- 'name' => tra('Export CSV.'),
- 'description' => tra('Label for an export button. Leave blank to show the usual "Filter" button instead.'),
- 'default' => '',
- 'advanced' => true,
- ),
- 'googlemapButtons' => array(
- 'required' => false,
- 'name' => tra('Google Map Buttons'),
- 'description' => tra('Display Mapview and Listview buttons'),
- 'filter' => 'alpha',
- 'default' => '',
- 'options' => array(
- array('text' => '', 'value' => ''),
- array('text' => tra('Yes'), 'value' => 'y'),
- array('text' => tra('No'), 'value' => 'n')
- )
- )
- ), $list['params']
- );
+ 'line' => array(
+ 'required' => false,
+ 'name' => tra('Line'),
+ 'description' => tra('Displays all the filters on the same line (not shown on same line by default)'),
+ 'filter' => 'alpha',
+ 'default' => 'n',
+ 'options' => array(
+ array('text' => '', 'value' => ''),
+ array('text' => tra('Yes'), 'value' => 'y'),
+ array('text' => tra('Yes with field label in dropdown'), 'value' => 'in'),
+ array('text' => tra('No'), 'value' => 'n')
+ )
+ ),
+ 'noflipflop' => array(
+ 'required' => false,
+ 'name' => tra('No Toggle'),
+ 'description' => tra('The toggle button to show/hide filters will not be shown if set to y (Yes). Default is to show the toggle.'),
+ 'filter' => 'alpha',
+ 'default' => 'n',
+ 'options' => array(
+ array('text' => '', 'value' => ''),
+ array('text' => tra('Yes'), 'value' => 'y'),
+ array('text' => tra('No'), 'value' => 'n')
+ )
+ ),
+ 'export_action' => array(
+ 'required' => false,
+ 'name' => tra('Export CSV.'),
+ 'description' => tra('Label for an export button. Leave blank to show the usual "Filter" button instead.'),
+ 'default' => '',
+ 'advanced' => true,
+ ),
+ 'googlemapButtons' => array(
+ 'required' => false,
+ 'name' => tra('Google Map Buttons'),
+ 'description' => tra('Display Mapview and Listview buttons'),
+ 'filter' => 'alpha',
+ 'default' => '',
+ 'options' => array(
+ array('text' => '', 'value' => ''),
+ array('text' => tra('Yes'), 'value' => 'y'),
+ array('text' => tra('No'), 'value' => 'n')
+ )
+ ),
+ ), $list['params']);
return array(
'name' => tra('Tracker Filter'),
Modified: trunk/lib/wiki-plugins/wikiplugin_trackeritemcopy.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_trackeritemcopy.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_trackeritemcopy.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -23,6 +23,7 @@
'filter' => 'text',
'default' => '',
'separator' => array(':'),
+ 'profile_reference' => 'tracker',
),
'linkFieldIds' => array(
'required' => true,
@@ -31,6 +32,7 @@
'filter' => 'text',
'default' => '',
'separator' => array(':'),
+ 'profile_reference' => 'tracker_field',
),
'copyFieldIds' => array(
'required' => true,
@@ -39,6 +41,7 @@
'filter' => 'text',
'default' => '',
'separator' => array('|', ':'),
+ 'profile_reference' => 'tracker_field',
),
'updateFieldIds' => array(
'required' => false,
@@ -47,6 +50,7 @@
'filter' => 'text',
'default' => '',
'separator' => array('|', ':'),
+ 'profile_reference' => 'tracker_field',
),
'updateFieldValues' => array(
'required' => false,
@@ -55,6 +59,7 @@
'filter' => 'text',
'default' => '',
'separator' => array('|', ':'),
+ 'profile_reference' => 'tracker_field',
),
'itemId' => array(
'required' => false,
@@ -62,6 +67,7 @@
'description' => tra('ID of item to make copy of, otherwise input is asked for'),
'filter' => 'text',
'default' => '',
+ 'profile_reference' => 'tracker_item',
),
'copies_on_load' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_trackeritemfield.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_trackeritemfield.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_trackeritemfield.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -21,14 +21,16 @@
'name' => tra('Tracker ID'),
'description' => tra('Numeric value representing the tracker ID.'),
'filter' => 'digits',
- 'default' => ''
+ 'default' => '',
+ 'profile_reference' => 'tracker',
),
'itemId' => array(
'required' => false,
'name' => tra('Item ID'),
'description' => tra('Numeric value representing the item ID. Default is the user tracker item for the current user.'),
'filter' => 'digits',
- 'default' => ''
+ 'default' => '',
+ 'profile_reference' => 'tracker_item',
),
'fieldId' => array(
'required' => false,
@@ -36,6 +38,7 @@
'description' => tra('Numeric value representing the field ID displayed or tested'),
'filter' => 'digits',
'default' => '',
+ 'profile_reference' => 'tracker_field',
),
'fields' => array(
'required' => false,
@@ -43,6 +46,8 @@
'description' => tra('Colon separated list of field IDs. Default is all fields'),
'default' => '',
'filter' => 'text',
+ 'separator' => ':',
+ 'profile_reference' => 'tracker_field',
),
'status' => array(
'required' => false,
@@ -58,7 +63,7 @@
array('text' => tra('Open & Pending'), 'value' => 'op'),
array('text' => tra('Open & Closed'), 'value' => 'oc'),
array('text' => tra('Pending & Closed'), 'value' => 'pc'),
- array('text' => tra('Open, Pending & Closed'), 'value' => 'opc')
+ array('text' => tra('Open, Pending & Closed'), 'value' => 'opc'),
)
),
'test' => array(
@@ -70,8 +75,8 @@
'options' => array(
array('text' => '', 'value' => ''),
array('text' => tra('Yes'), 'value' => 1),
- array('text' => tra('No'), 'value' => 0)
- )
+ array('text' => tra('No'), 'value' => 0),
+ ),
),
'value' => array(
'required' => true,
@@ -181,7 +186,6 @@
$all_fields = $trklib->list_tracker_fields($trackerId, 0, -1);
$all_fields = $all_fields['data'];
if (!empty($fields)) {
- $fields = explode(':', $fields);
foreach ($all_fields as $i=>$fopt) {
if (!in_array($fopt['fieldId'], $fields)) {
unset($all_fields[$i]);
Modified: trunk/lib/wiki-plugins/wikiplugin_trackerlist.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_trackerlist.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_trackerlist.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -265,6 +265,7 @@
'filter' => 'digits',
'separator' => ':',
'default' => '',
+ 'profile_reference' => 'tracker_field',
),
'filtervalue' => array(
'required' => false,
@@ -350,6 +351,7 @@
'filter' => 'pagename',
'advanced' => true,
'default' => '',
+ 'profile_reference' => 'wiki_page',
),
'tplwiki' => array(
'required' => false,
@@ -358,6 +360,7 @@
'filter' => 'pagename',
'advanced' => true,
'default' => '',
+ 'profile_reference' => 'wiki_page',
),
'view_user' => array(
'required' => false,
@@ -372,6 +375,7 @@
'filter' => 'digits',
'separator' => ':',
'default' => '',
+ 'profile_reference' => 'tracker_item',
),
'ignoreRequestItemId' => array(
'required' => false,
@@ -443,6 +447,7 @@
'filter' => 'text',
'advanced' => true,
'default' => '',
+ 'profile_reference' => 'tracker_field_string',
),
'silent' => array(
'required' => false,
@@ -562,6 +567,7 @@
'separator' => ':',
'filter' => 'digits',
'default' => '',
+ 'profile_reference' => 'tracker_field',
),
'calendarviewmode' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_trackerpasscode.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_trackerpasscode.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_trackerpasscode.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -34,6 +34,7 @@
'description' => tra('Tracker from which to get passcode to check against'),
'filter' => 'text',
'default' => '',
+ 'profile_reference' => 'tracker',
),
'fieldId' => array(
'required' => true,
@@ -41,6 +42,7 @@
'description' => tra('Field ID from which to get passcode to check against'),
'filter' => 'text',
'default' => '',
+ 'profile_reference' => 'tracker_field',
),
'itemId' => array(
'required' => true,
@@ -48,6 +50,7 @@
'description' => tra('Item ID from which to get passcode to check against'),
'filter' => 'text',
'default' => '',
+ 'profile_reference' => 'tracker_item',
),
),
);
Modified: trunk/lib/wiki-plugins/wikiplugin_trackerprefill.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_trackerprefill.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_trackerprefill.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -19,6 +19,7 @@
'name' => tra('Page'),
'description' => tra('Tracker Page Name'),
'default' => '',
+ 'profile_reference' => 'wiki_page',
),
'label' => array(
'required' => false,
@@ -38,6 +39,7 @@
'description' => tra('Field ID for the first field'),
'filter' => 'digits',
'default' => '',
+ 'profile_reference' => 'tracker_field',
),
'value1' => array(
'required' => true,
@@ -51,6 +53,7 @@
'description' => tra('Field ID for the second field'),
'filter' => 'digits',
'default' => '',
+ 'profile_reference' => 'tracker_field',
),
'value2' => array(
'required' => false,
@@ -64,6 +67,7 @@
'description' => tra('Field ID for the third field'),
'filter' => 'digits',
'default' => '',
+ 'profile_reference' => 'tracker_field',
),
'value3' => array(
'required' => false,
@@ -77,6 +81,7 @@
'description' => tra('Field ID for the fourth field'),
'filter' => 'digits',
'default' => '',
+ 'profile_reference' => 'tracker_field',
),
'value4' => array(
'required' => false,
@@ -90,6 +95,7 @@
'description' => tra('Field ID for the fifth field'),
'filter' => 'digits',
'default' => '',
+ 'profile_reference' => 'tracker_field',
),
'value5' => array(
'required' => false,
@@ -103,6 +109,7 @@
'description' => tra('Field ID for the sixth field'),
'filter' => 'digits',
'default' => '',
+ 'profile_reference' => 'tracker_field',
),
'value6' => array(
'required' => false,
@@ -116,6 +123,7 @@
'description' => tra('Field ID for the seventh field'),
'filter' => 'digits',
'default' => '',
+ 'profile_reference' => 'tracker_field',
),
'value7' => array(
'required' => false,
@@ -129,6 +137,7 @@
'description' => tra('Field ID for the eighth field'),
'filter' => 'digits',
'default' => '',
+ 'profile_reference' => 'tracker_field',
),
'value8' => array(
'required' => false,
Modified: trunk/lib/wiki-plugins/wikiplugin_trackerquerytemplate.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_trackerquerytemplate.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_trackerquerytemplate.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -21,7 +21,8 @@
'required' => true,
'name' => tra('Tracker'),
'description' => tra('Name of the tracker you want to query.'),
- 'default' => ''
+ 'default' => '',
+ 'profile_reference' => 'tracker',
),
'debug' => array(
'required' => false,
@@ -61,12 +62,15 @@
'name' => tra('Tracker Item Id'),
'description' => tra('Item id of tracker item'),
'default' => '',
+ 'profile_reference' => 'tracker_item',
),
'itemids' => array(
'required' => false,
'name' => tra('Tracker Item Ids'),
'description' => tra('Item id of tracker items, separated with comma'),
'default' => '',
+ 'separator' => ',',
+ 'profile_reference' => 'tracker_item',
),
'likefilters' => array(
'required' => false,
@@ -114,7 +118,7 @@
);
if (!empty($params['itemids'])) {
- $itemIds = explode(',', $params['itemids']);
+ $itemIds = $params['itemids'];
unset($params['itemids']);
$newData = '';
foreach($itemIds as $itemId) {
Modified: trunk/lib/wiki-plugins/wikiplugin_trackerstat.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_trackerstat.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_trackerstat.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -21,12 +21,15 @@
'description' => tra('Numeric value representing the tracker ID'),
'filter' => 'digits',
'default' => '',
+ 'profile_reference' => 'tracker',
),
'fields' => array(
'required' => true,
'name' => tra('Fields'),
'description' => tra('Colon-separated list of field IDs to be displayed. Example: 2:4:5'),
- 'default' => ''
+ 'default' => '',
+ 'separator' => ':',
+ 'profile_reference' => 'tracker_field',
),
'show_count' => array(
'required' => false,
@@ -37,8 +40,8 @@
'options' => array(
array('text' => '', 'value' => ''),
array('text' => tra('Yes'), 'value' => 'y'),
- array('text' => tra('No'), 'value' => 'n')
- )
+ array('text' => tra('No'), 'value' => 'n'),
+ ),
),
'show_percent' => array(
'required' => false,
@@ -49,8 +52,8 @@
'options' => array(
array('text' => '', 'value' => ''),
array('text' => tra('Yes'), 'value' => 'y'),
- array('text' => tra('No'), 'value' => 'n')
- )
+ array('text' => tra('No'), 'value' => 'n'),
+ ),
),
'show_bar' => array(
'required' => false,
@@ -61,8 +64,8 @@
'options' => array(
array('text' => '', 'value' => ''),
array('text' => tra('Yes'), 'value' => 'y'),
- array('text' => tra('No'), 'value' => 'n')
- )
+ array('text' => tra('No'), 'value' => 'n'),
+ ),
),
'status' => array(
'required' => false,
@@ -78,8 +81,8 @@
array('text' => tra('Open & Pending'), 'value' => 'op'),
array('text' => tra('Open & Closed'), 'value' => 'oc'),
array('text' => tra('Pending & Closed'), 'value' => 'pc'),
- array('text' => tra('Open, Pending & Closed'), 'value' => 'opc')
- )
+ array('text' => tra('Open, Pending & Closed'), 'value' => 'opc'),
+ ),
),
'show_link' => array(
'required' => false,
@@ -90,8 +93,8 @@
'options' => array(
array('text' => '', 'value' => ''),
array('text' => tra('Yes'), 'value' => 'y'),
- array('text' => tra('No'), 'value' => 'n')
- )
+ array('text' => tra('No'), 'value' => 'n'),
+ ),
),
'show_lastmodif' => array(
'required' => false,
@@ -99,7 +102,7 @@
'description' => tra('Show last modification date of a tracker. Set to y to use site setting or use PHP\s format (www.php.net/strftime).'),
'filter' => 'text',
'default' => '',
- 'accepted' => tra('y to use the site setting for short date format. Otherwise, use PHP format (www.php.net/strftime), Example: "%A %d of %B, %Y"')
+ 'accepted' => tra('y to use the site setting for short date format. Otherwise, use PHP format (www.php.net/strftime), Example: "%A %d of %B, %Y"'),
)
)
);
@@ -172,7 +175,7 @@
}
}
if (!empty($fields)) {
- $listFields = explode(':', $fields);
+ $listFields = $fields;
} else {
foreach ($allFields['data'] as $f) {
$listFields[] = $f['fieldId'];
Modified: trunk/lib/wiki-plugins/wikiplugin_trackertimeline.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_trackertimeline.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_trackertimeline.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -21,6 +21,7 @@
'description' => tra('Numeric value representing the tracker ID'),
'filter' => 'digits',
'default' => '',
+ 'profile_reference' => 'tracker',
),
'title' => array(
'required' => true,
@@ -41,14 +42,16 @@
'name' => tra('Start Date'),
'description' => tra('Tracker Field ID containing the element start date. The field must be a datetime/jscalendar field.'),
'filter' => 'digits',
- 'default' => ''
+ 'default' => '',
+ 'profile_reference' => 'tracker_field',
),
'end' => array(
'required' => true,
'name' => tra('End Date'),
'description' => tra('Tracker Field ID containing the element end date. The field must be a datetime/jscalendar field.'),
'filter' => 'digits',
- 'default' => ''
+ 'default' => '',
+ 'profile_reference' => 'tracker_field',
),
'group' => array(
'required' => true,
@@ -56,6 +59,7 @@
'description' => tra('Tracker Field ID containing the element\'s group. Elements of a same group are displayed on the same row.'),
'filter' => 'digits',
'default' => '',
+ 'profile_reference' => 'tracker_field',
),
'lower' => array(
'required' => true,
@@ -139,6 +143,7 @@
'description' => tra('Tracker Field ID containing the page name for item details.'),
'filter' => 'digits',
'default' => '',
+ 'profile_reference' => 'tracker_field',
),
'simile_timeline' => array(
'required' => false,
@@ -157,6 +162,7 @@
'description' => tra('Tracker Field ID containing in image.'),
'filter' => 'digits',
'default' => '',
+ 'profile_reference' => 'tracker_field',
),
)
);
Modified: trunk/lib/wiki-plugins/wikiplugin_trackertoggle.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_trackertoggle.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_trackertoggle.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -18,6 +18,7 @@
'name' => tra('Field ID'),
'description' => tra('Numeric value representing the field ID tested.'),
'filter' => 'digits',
+ 'profile_reference' => 'tracker_field',
),
'value' => array(
'required' => true,
@@ -44,6 +45,7 @@
'description' => tra('Use the field of specific item. The URL param itemId is used if this parameter is not set.'),
'filter' => 'digits',
'default' => 0,
+ 'profile_reference' => 'tracker_item',
),
),
);
Modified: trunk/lib/wiki-plugins/wikiplugin_transclude.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_transclude.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_transclude.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -21,6 +21,7 @@
'name' => tra('Page Name'),
'description' => tra('Name of the wiki page to use as a template for the values.'),
'default' => '',
+ 'profile_reference' => 'wiki_page',
),
),
);
Modified: trunk/lib/wiki-plugins/wikiplugin_vote.php
===================================================================
--- trunk/lib/wiki-plugins/wikiplugin_vote.php 2013-05-20 16:17:19 UTC (rev 46006)
+++ trunk/lib/wiki-plugins/wikiplugin_vote.php 2013-05-20 18:34:12 UTC (rev 46007)
@@ -21,12 +21,15 @@
'description' => tra('Numeric value representing the tracker ID'),
'filter' => 'digits',
'default' => '',
+ 'profile_reference' => 'tracker',
),
'fields' => array(
'required' => true,
'name' => tra('Fields'),
'description' => tra('Colon-separated list of field IDs to be displayed. Example: 2:4:5'),
'default' => '',
+ 'separator' => ':',
+ 'profile_reference' => 'tracker_field',
),
'show_percent' => array(
'required' => false,
@@ -37,8 +40,8 @@
'options' => array(
array('text' => '', 'value' => ''),
array('text' => tra('Yes'), 'value' => 'y'),
- array('text' => tra('No'), 'value' => 'n')
- )
+ array('text' => tra('No'), 'value' => 'n'),
+ ),
),
'show_bar' => array(
'required' => false,
@@ -49,8 +52,8 @@
'options' => array(
array('text' => '', 'value' => ''),
array('text' => tra('Yes'), 'value' => 'y'),
- array('text' => tra('No'), 'value' => 'n')
- )
+ array('text' => tra('No'), 'value' => 'n'),
+ ),
),
'show_stat' => array(
'required' => false,
@@ -61,8 +64,8 @@
'options' => array(
array('text' => '', 'value' => ''),
array('text' => tra('Yes'), 'value' => 'y'),
- array('text' => tra('No'), 'value' => 'n')
- )
+ array('text' => tra('No'), 'value' => 'n'),
+ ),
),
'show_stat_only_after' => array(
'required' => false,
@@ -73,8 +76,8 @@
'options' => array(
array('text' => '', 'value' => ''),
array('text' => tra('Yes'), 'value' => 'y'),
- array('text' => tra('No'), 'value' => 'n')
- )
+ array('text' => tra('No'), 'value' => 'n'),
+ ),
),
'show_creator' => array(
'required' => false,
@@ -85,8 +88,8 @@
'options' => array(
array('text' => '', 'value' => ''),
array('text' => tra('Yes'), 'value' => 'y'),
- array('text' => tra('No'), 'value' => 'n')
- )
+ array('text' => tra('No'), 'value' => 'n'),
+ ),
),
'status' => array(
'required' => false,
@@ -102,8 +105,8 @@
array('text' => tra('Open & Pending'), 'value' => 'op'),
array('text' => tra('Open & Closed'), 'value' => 'oc'),
array('text' => tra('Pending & Closed'), 'value' => 'pc'),
- array('text' => tra('Open, Pending & Closed'), 'value' => 'opc')
- )
+ array('text' => tra('Open, Pending & Closed'), 'value' => 'opc'),
+ ),
),
'float' => array(
'required' => false,
@@ -116,7 +119,7 @@
array('text' => tra('Left'), 'value' => 'left'),
array('text' => tra('Right'), 'value' => 'right'),
array('text' => tra('None'), 'value' => 'none'),
- )
+ ),
),
'show_toggle' => array(
@@ Diff output truncated at 100000 characters. @@
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|