Ejemplo n.º 1
0
 /**
  * Initialize arguments.
  *
  * @throws \TYPO3Fluid\Fluid\Core\ViewHelper\Exception
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerArgument('table', 'string', 'Table name (\'_MOD_\'+module name). If not set, the current module name will be used');
     $this->registerArgument('field', 'string', 'Field name (CSH locallang main key)', false, '');
     $this->registerArgument('wrap', 'string', 'Markup to wrap around the CSH, split by "|"', false, '');
 }
Ejemplo n.º 2
0
 /**
  * Initialize arguments.
  *
  * @throws \TYPO3Fluid\Fluid\Core\ViewHelper\Exception
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerArgument('tableName', 'string', 'name of the database table', true);
     $this->registerArgument('fieldList', 'array', 'list of fields to be displayed. If empty, only the title column (configured in $TCA[$tableName][\'ctrl\'][\'title\']) is shown', false, []);
     $this->registerArgument('storagePid', 'int', 'by default, records are fetched from the storage PID configured in persistence.storagePid. With this argument, the storage PID can be overwritten');
     $this->registerArgument('levels', 'int', 'corresponds to the level selector of the TYPO3 list module. By default only records from the current storagePid are fetched', false, 0);
     $this->registerArgument('filter', 'string', 'corresponds to the "Search String" textbox of the TYPO3 list module. If not empty, only records matching the string will be fetched', false, '');
     $this->registerArgument('recordsPerPage', 'int', 'amount of records to be displayed at once. Defaults to $TCA[$tableName][\'interface\'][\'maxSingleDBListItems\'] or (if that\'s not set) to 100', false, 0);
     $this->registerArgument('sortField', 'string', 'table field to sort the results by', false, '');
     $this->registerArgument('sortDescending', 'bool', 'if TRUE records will be sorted in descending order', false, false);
     $this->registerArgument('readOnly', 'bool', 'if TRUE, the edit icons won\'t be shown. Otherwise edit icons will be shown, if the current BE user has edit rights for the specified table!', false, false);
     $this->registerArgument('enableClickMenu', 'bool', 'enables context menu', false, true);
     $this->registerArgument('clickTitleMode', 'string', 'one of "edit", "show" (only pages, tt_content), "info');
 }
Ejemplo n.º 3
0
 /**
  * Initialize arguments.
  *
  * @throws \TYPO3Fluid\Fluid\Core\ViewHelper\Exception
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerArgument('pageTitle', 'string', 'Title tag of the module. Not required by default, as BE modules are shown in a frame', false, '');
     $this->registerArgument('enableClickMenu', 'bool', 'If TRUE, loads clickmenu.js required by BE context menus. Defaults to TRUE', false, true);
     $this->registerArgument('loadExtJs', 'bool', 'Specifies whether to load ExtJS library. Defaults to FALSE', false, false);
     $this->registerArgument('loadExtJsTheme', 'bool', 'Whether to load ExtJS "grey" theme. Defaults to FALSE', false, true);
     $this->registerArgument('enableExtJsDebug', 'bool', 'If TRUE, debug version of ExtJS is loaded. Use this for development only', false, false);
     $this->registerArgument('loadJQuery', 'bool', 'Whether to load jQuery library. Defaults to FALSE', false, false);
     $this->registerArgument('includeCssFiles', 'array', 'List of custom CSS file to be loaded');
     $this->registerArgument('includeJsFiles', 'array', 'List of custom JavaScript file to be loaded');
     $this->registerArgument('addJsInlineLabels', 'array', 'Custom labels to add to JavaScript inline labels');
     $this->registerArgument('includeRequireJsModules', 'array', 'List of RequireJS modules to be loaded');
     $this->registerArgument('jQueryNamespace', 'string', 'Store the jQuery object in a specific namespace');
 }
Ejemplo n.º 4
0
 /**
  * Initializes the arguments
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerArgument('pid', 'int', 'Pid of the page', true);
     $this->registerArgument('titleLimit', 'int', 'Limit of the page title', false, 20);
 }
Ejemplo n.º 5
0
 /**
  * Initializes the arguments
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerArgument('errorNumber', 'int', 'The error number (0 ... 3)', false, 0);
 }