Commit 626c3afd authored by Wouter Wolters's avatar Wouter Wolters Committed by Frank Nägler
Browse files

[TASK] Use "int" in @param notation

Resolves: #62467
Releases: master
Change-Id: I927a16b0fa89c5b859b56a7549548102ac04037f
Reviewed-on: http://review.typo3.org/33522

Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarFrank Nägler <typo3@naegler.net>
Tested-by: default avatarFrank Nägler <typo3@naegler.net>
parent e0d328aa
......@@ -84,8 +84,8 @@ class localPageTree extends \TYPO3\CMS\Backend\Tree\View\BrowseTreeView {
/**
* Returns TRUE if a doktype can be linked.
*
* @param integer $doktype Doktype value to test
* @param integer $uid uid to test.
* @param int $doktype Doktype value to test
* @param int $uid uid to test.
* @return boolean
*/
public function ext_isLinkable($doktype, $uid) {
......@@ -139,8 +139,8 @@ class TBE_PageTree extends localPageTree {
/**
* Returns TRUE if a doktype can be linked (which is always the case here).
*
* @param integer $doktype Doktype value to test
* @param integer $uid uid to test.
* @param int $doktype Doktype value to test
* @param int $uid uid to test.
* @return boolean
*/
public function ext_isLinkable($doktype, $uid) {
......
......@@ -44,7 +44,7 @@ class newRecordLocalPageTree extends \TYPO3\CMS\Backend\Tree\View\PageTreeView {
* Determines whether to expand a branch or not.
* Here the branch is expanded if the current id matches the global id for the listing/new
*
* @param integer $id The ID (page id) of the element
* @param int $id The ID (page id) of the element
* @return boolean Returns TRUE if the IDs matches
*/
public function expandNext($id) {
......
......@@ -62,8 +62,8 @@ class ext_posMap_pages extends \TYPO3\CMS\Backend\Tree\View\PagePositionMap {
/**
* Creates the onclick event for the insert-icons.
*
* @param integer $pid The pid.
* @param integer $newPagePID New page id.
* @param int $pid The pid.
* @param int $newPagePID New page id.
* @return string Onclick attribute content
*/
public function onClickEvent($pid, $newPagePID) {
......@@ -87,7 +87,7 @@ class ext_posMap_pages extends \TYPO3\CMS\Backend\Tree\View\PagePositionMap {
*
* @param string $t_code Title string
* @param array $dat Information array with record array inside.
* @param integer $id The current id.
* @param int $id The current id.
* @return string The title string.
*/
public function boldTitle($t_code, $dat, $id) {
......
......@@ -30,10 +30,10 @@ class SkinImageViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\ImageViewHelper {
* @param string $src
* @param string $width width of the image. This can be a numeric value representing the fixed width of the image in pixels. But you can also perform simple calculations by adding "m" or "c" to the value. See imgResource.width for possible options.
* @param string $height height of the image. This can be a numeric value representing the fixed height of the image in pixels. But you can also perform simple calculations by adding "m" or "c" to the value. See imgResource.width for possible options.
* @param integer $minWidth minimum width of the image
* @param integer $minHeight minimum height of the image
* @param integer $maxWidth maximum width of the image
* @param integer $maxHeight maximum height of the image
* @param int $minWidth minimum width of the image
* @param int $minHeight minimum height of the image
* @param int $maxWidth maximum width of the image
* @param int $maxHeight maximum height of the image
* @return string rendered tag.
*/
public function render($src, $width = NULL, $height = NULL, $minWidth = NULL, $minHeight = NULL, $maxWidth = NULL, $maxHeight = NULL) {
......
......@@ -144,7 +144,7 @@ class ClickMenu {
* Make 1st level clickmenu:
*
* @param string $table Table name
* @param integer $uid UID for the current record.
* @param int $uid UID for the current record.
* @return string HTML content
*/
public function printDBClickMenu($table, $uid) {
......@@ -321,7 +321,7 @@ class ClickMenu {
* Make 2nd level clickmenu (only for DBmenus)
*
* @param string $table Table name
* @param integer $uid UID for the current record.
* @param int $uid UID for the current record.
* @return string HTML content
*/
public function printNewDBLevel($table, $uid) {
......@@ -391,7 +391,7 @@ class ClickMenu {
*
* @param array $menuItems Array for manipulation.
* @param string $table Table name
* @param integer $uid UID for the current record.
* @param int $uid UID for the current record.
* @return array Processed $menuItems array
*/
public function processingByExtClassArray($menuItems, $table, $uid) {
......@@ -423,7 +423,7 @@ class ClickMenu {
* Adding CM element for Clipboard "copy" and "cut"
*
* @param string $table Table name
* @param integer $uid UID for the current record.
* @param int $uid UID for the current record.
* @param string $type Type: "copy" or "cut
* @return array Item array, element in $menuItems
* @internal
......@@ -444,7 +444,7 @@ class ClickMenu {
* NOTICE: $table and $uid should follow the special syntax for paste, see clipboard-class :: pasteUrl();
*
* @param string $table Table name
* @param integer $uid UID for the current record. NOTICE: Special syntax!
* @param int $uid UID for the current record. NOTICE: Special syntax!
* @param string $type Type: "into" or "after
* @param array $elInfo Contains instructions about whether to copy or cut an element.
* @return array Item array, element in $menuItems
......@@ -467,7 +467,7 @@ class ClickMenu {
* Adding CM element for Info
*
* @param string $table Table name
* @param integer $uid UID for the current record.
* @param int $uid UID for the current record.
* @return array Item array, element in $menuItems
* @internal
*/
......@@ -479,7 +479,7 @@ class ClickMenu {
* Adding CM element for History
*
* @param string $table Table name
* @param integer $uid UID for the current record.
* @param int $uid UID for the current record.
* @return array Item array, element in $menuItems
* @internal
*/
......@@ -492,7 +492,7 @@ class ClickMenu {
* Adding CM element for Permission setting
*
* @param string $table Table name
* @param integer $uid UID for the current record.
* @param int $uid UID for the current record.
* @param array $rec The "pages" record with "perms_*" fields inside.
* @return array Item array, element in $menuItems
* @internal
......@@ -509,7 +509,7 @@ class ClickMenu {
* Adding CM element for DBlist
*
* @param string $table Table name
* @param integer $uid UID for the current record.
* @param int $uid UID for the current record.
* @param array $rec Record of the element (needs "pid" field if not pages-record)
* @return array Item array, element in $menuItems
* @internal
......@@ -526,7 +526,7 @@ class ClickMenu {
* Adding CM element for Moving wizard
*
* @param string $table Table name
* @param integer $uid UID for the current record.
* @param int $uid UID for the current record.
* @param array $rec Record. Needed for tt-content elements which will have the sys_language_uid sent
* @return array Item array, element in $menuItems
* @internal
......@@ -541,7 +541,7 @@ class ClickMenu {
* Adding CM element for Create new wizard (either db_new.php or sysext/cms/layout/db_new_content_el.php or custom wizard)
*
* @param string $table Table name
* @param integer $uid UID for the current record.
* @param int $uid UID for the current record.
* @param array $rec Record.
* @return array Item array, element in $menuItems
* @internal
......@@ -559,7 +559,7 @@ class ClickMenu {
* Adding CM element for Editing of the access related fields of a table (disable, starttime, endtime, fe_groups)
*
* @param string $table Table name
* @param integer $uid UID for the current record.
* @param int $uid UID for the current record.
* @return array Item array, element in $menuItems
* @internal
*/
......@@ -572,7 +572,7 @@ class ClickMenu {
/**
* Adding CM element for edit page properties
*
* @param integer $uid page uid to edit (PID)
* @param int $uid page uid to edit (PID)
* @return array Item array, element in $menuItems
* @internal
*/
......@@ -585,7 +585,7 @@ class ClickMenu {
* Adding CM element for regular editing of the element!
*
* @param string $table Table name
* @param integer $uid UID for the current record.
* @param int $uid UID for the current record.
* @return array Item array, element in $menuItems
* @internal
*/
......@@ -616,7 +616,7 @@ class ClickMenu {
* Adding CM element for regular Create new element
*
* @param string $table Table name
* @param integer $uid UID for the current record.
* @param int $uid UID for the current record.
* @return array Item array, element in $menuItems
* @internal
*/
......@@ -631,7 +631,7 @@ class ClickMenu {
* Adding CM element for Delete
*
* @param string $table Table name
* @param integer $uid UID for the current record.
* @param int $uid UID for the current record.
* @param array $elInfo Label for including in the confirmation message, EXT:lang/locallang_core.xlf:mess.delete
* @return array Item array, element in $menuItems
* @internal
......@@ -651,7 +651,7 @@ class ClickMenu {
/**
* Adding CM element for View Page
*
* @param integer $id Page uid (PID)
* @param int $id Page uid (PID)
* @param string $anchor Anchor, if any
* @return array Item array, element in $menuItems
* @internal
......@@ -663,7 +663,7 @@ class ClickMenu {
/**
* Adding element for setting temporary mount point.
*
* @param integer $page_id Page uid (PID)
* @param int $page_id Page uid (PID)
* @return array Item array, element in $menuItems
* @internal
*/
......@@ -985,8 +985,8 @@ class ClickMenu {
* Make 1st level clickmenu:
*
* @param string $table The absolute path
* @param integer $srcId UID for the current record.
* @param integer $dstId Destination ID
* @param int $srcId UID for the current record.
* @param int $dstId Destination ID
* @return string HTML content
*/
public function printDragDropClickMenu($table, $srcId, $dstId) {
......@@ -1031,8 +1031,8 @@ class ClickMenu {
/**
* Adding CM element for Copying/Moving a Page Into/After from a drag & drop action
*
* @param integer $srcUid source UID code for the record to modify
* @param integer $dstUid destination UID code for the record to modify
* @param int $srcUid source UID code for the record to modify
* @param int $dstUid destination UID code for the record to modify
* @param string $action Action code: either "move" or "copy
* @param string $into Parameter code: either "into" or "after
* @return array Item array, element in $menuItems
......
......@@ -506,7 +506,7 @@ class Clipboard {
* Returns the select-url for database elements
*
* @param string $table Table name
* @param integer $uid Uid of record
* @param int $uid Uid of record
* @param bool $copy If set, copymode will be enabled
* @param bool $deselect If set, the link will deselect, otherwise select.
* @param array $baseArray The base array of GET vars to be sent in addition. Notice that current GET vars WILL automatically be included.
......@@ -798,7 +798,7 @@ class Clipboard {
* If the pad is "normal", the mode value is returned if the element existed. Thus you'll know if the item was copy or cut moded...
*
* @param string $table Table name, (_FILE for files...)
* @param integer $uid Element uid (path for files)
* @param int $uid Element uid (path for files)
* @return string
*/
public function isSelected($table, $uid) {
......@@ -812,7 +812,7 @@ class Clipboard {
* Makes sense only for DB records - not files!
*
* @param string $table Table name
* @param integer $uid Element uid
* @param int $uid Element uid
* @return array Element record with extra field _RECORD_TITLE set to the title of the record
*/
public function getSelectedRecord($table = '', $uid = '') {
......
......@@ -32,7 +32,7 @@ class TranslationConfigurationProvider {
* \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon(<flags-xx>) to get an HTML
* which will represent the flag of this language.
*
* @param integer $page_id Page id (only used to get TSconfig configuration setting flag and label for default language)
* @param int $page_id Page id (only used to get TSconfig configuration setting flag and label for default language)
* @param string $backPath Backpath for flags
* @return array Array with languages (title, uid, flagIcon)
*/
......@@ -78,8 +78,8 @@ class TranslationConfigurationProvider {
* Will overlay workspace version of record too!
*
* @param string $table Table name
* @param integer $uid Record uid
* @param integer $sys_language_uid Language uid. If zero, then all languages are selected.
* @param int $uid Record uid
* @param int $sys_language_uid Language uid. If zero, then all languages are selected.
* @param array $row The record to be translated
* @param array $selFieldList Select fields for the query which fetches the translations of the current record
* @return array Array with information. Errors will return string with message.
......
......@@ -33,7 +33,7 @@ class TsConfigParser extends \TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser
*
* @param string $TStext The TSConfig being parsed
* @param string $type The type of TSConfig (either "userTS" or "PAGES")
* @param integer $id The uid of the page being handled
* @param int $id The uid of the page being handled
* @param array $rootLine The rootline of the page being handled
* @return array Array containing the parsed TSConfig and a flag whether the content was retrieved from cache
*/
......
......@@ -165,7 +165,7 @@ class ConditionMatcher extends \TYPO3\CMS\Core\Configuration\TypoScript\Conditio
* Gets the page id by a record.
*
* @param string $table Name of the table
* @param integer $id Id of the accordant record
* @param int $id Id of the accordant record
* @param bool $ignoreTable Whether to ignore the page, if TRUE a positive
* @return integer Id of the page the record is persisted on
*/
......@@ -187,7 +187,7 @@ class ConditionMatcher extends \TYPO3\CMS\Core\Configuration\TypoScript\Conditio
* Determine if record of table 'pages' with the given $pid is currently created in TCEforms.
* This information is required for conditions in BE for PIDupinRootline.
*
* @param integer $pid The pid the check for as parent page
* @param int $pid The pid the check for as parent page
* @return boolean TRUE if the is currently a new page record being edited with $pid as uid of the parent page
*/
protected function isNewPageWithPageId($pageId) {
......
......@@ -145,7 +145,7 @@ abstract class AbstractContextMenuDataProvider {
*
* @param array $actions
* @param \TYPO3\CMS\Backend\Tree\TreeNode $node
* @param integer $level
* @param int $level
* @return \TYPO3\CMS\Backend\ContextMenu\ContextMenuActionCollection
*/
protected function getNextContextMenuLevel(array $actions, \TYPO3\CMS\Backend\Tree\TreeNode $node, $level = 0) {
......
......@@ -466,7 +466,7 @@ class ElementInformationController {
* Returns the rendered record actions
*
* @param string $table
* @param integer $uid
* @param int $uid
* @return string
*/
protected function getRecordActions($table, $uid) {
......
......@@ -1018,8 +1018,8 @@ class EditDocumentController {
* Displays only languages which are available for the current page.
*
* @param string $table Table name
* @param integer $uid Uid for which to create a new language
* @param integer $pid Pid of the record
* @param int $uid Uid for which to create a new language
* @param int $pid Pid of the record
* @return string <select> HTML element (if there were items for the box anyways...)
*/
public function languageSwitch($table, $uid, $pid = NULL) {
......@@ -1114,7 +1114,7 @@ class EditDocumentController {
/**
* Returns sys_language records available for record translations on given page.
*
* @param integer $id Page id: If zero, the query will select all sys_language records from root level which are NOT hidden. If set to another value, the query will select all sys_language records that has a pages_language_overlay record on that page (and is not hidden, unless you are admin user)
* @param int $id Page id: If zero, the query will select all sys_language records from root level which are NOT hidden. If set to another value, the query will select all sys_language records that has a pages_language_overlay record on that page (and is not hidden, unless you are admin user)
* @return array Language records including faked record for default language
*/
public function getLanguages($id) {
......@@ -1200,7 +1200,7 @@ class EditDocumentController {
* Get record for editing.
*
* @param string $table Table name
* @param integer $theUid Record UID
* @param int $theUid Record UID
* @return array Returns record to edit, FALSE if none
*/
public function getRecordForEdit($table, $theUid) {
......@@ -1280,7 +1280,7 @@ class EditDocumentController {
/**
* Handling the closing of a document
*
* @param integer $code Close code: 0/1 will redirect to $this->retUrl, 3 will clear the docHandler (thus closing all documents) and otehr values will call setDocument with ->retUrl
* @param int $code Close code: 0/1 will redirect to $this->retUrl, 3 will clear the docHandler (thus closing all documents) and otehr values will call setDocument with ->retUrl
* @return void
*/
public function closeDocument($code = 0) {
......
......@@ -577,7 +577,7 @@ class NewRecordController {
*
* @param string $linkText Link text
* @param string $table Table name (in which to create new record)
* @param integer $pid PID value for the "&edit['.$table.']['.$pid.']=new" command (positive/negative)
* @param int $pid PID value for the "&edit['.$table.']['.$pid.']=new" command (positive/negative)
* @param bool $addContentTable If $addContentTable is set, then a new tt_content record is created together with pages
* @return string The link.
*/
......
......@@ -1140,7 +1140,7 @@ class PageLayoutController {
/**
* Returns a SQL query for selecting sys_language records.
*
* @param integer $id Page id: If zero, the query will select all sys_language records from root level which are NOT hidden. If set to another value, the query will select all sys_language records that has a pages_language_overlay record on that page (and is not hidden, unless you are admin user)
* @param int $id Page id: If zero, the query will select all sys_language records from root level which are NOT hidden. If set to another value, the query will select all sys_language records that has a pages_language_overlay record on that page (and is not hidden, unless you are admin user)
* @return string Return query string.
*/
public function exec_languageQuery($id) {
......
......@@ -320,7 +320,7 @@ class PageTreeNavigationController {
/**
* Setting temporary page id as DB mount
*
* @param integer $pageId The page id to set as DB mount
* @param int $pageId The page id to set as DB mount
* @return void
*/
public function settingTemporaryMountPoint($pageId) {
......
......@@ -381,8 +381,8 @@ class ColorpickerController {
* This method handles the correct imageResource no matter what format
*
* @param pointer $im Valid ImageResource returned by \TYPO3\CMS\Core\Imaging\GraphicalFunctions::imageCreateFromFile
* @param integer $x X-Coordinate of the pixel that should be checked
* @param integer $y Y-Coordinate of the pixel that should be checked
* @param int $x X-Coordinate of the pixel that should be checked
* @param int $y Y-Coordinate of the pixel that should be checked
* @return string HEX RGB value for color
* @see colorImage()
*/
......
......@@ -869,7 +869,7 @@ class FormsController {
* Checks access for element
*
* @param string $table Table name
* @param integer $uid Record uid
* @param int $uid Record uid
* @return boolean
* @todo: Refactor to remove duplicate code (see TableController, RteController)
*/
......
......@@ -254,7 +254,7 @@ class RteController {
* Checks access for element
*
* @param string $table Table name
* @param integer $uid Record uid
* @param int $uid Record uid
* @return boolean
* @todo: Refactor to remove duplicate code (see FormsController, TableController)
*/
......
......@@ -544,7 +544,7 @@ class TableController {
* Converts the input configuration code string into an array
*
* @param string $cfgStr Configuration code
* @param integer $cols Default number of columns
* @param int $cols Default number of columns
* @return array Configuration array
* @see cfgArray2CfgString()
*/
......@@ -578,7 +578,7 @@ class TableController {
* Checks access for element
*
* @param string $table Table name
* @param integer $uid Record uid
* @param int $uid Record uid
* @return boolean
* @todo: Refactor to remove duplicate code (see FormsController, RteController)
*/
......
......@@ -182,7 +182,7 @@ class DataPreprocessor {
*
* @param string $table The table name
* @param string $id The uid value of the record (integer). Can also be a string (NEW-something) if the record is a NEW record.
* @param integer $pid The pid integer. For existing records this is of course the row's "pid" field. For new records it can be either a page id (positive) or a pointer to another record from the SAME table (negative) after which the record should be inserted (or on same page)
* @param int $pid The pid integer. For existing records this is of course the row's "pid" field. For new records it can be either a page id (positive) or a pointer to another record from the SAME table (negative) after which the record should be inserted (or on same page)
* @param array $row The row of the current record. If NEW record, then it may be loaded with default values (by eg. fetchRecord()).
* @return void
* @see fetchRecord()
......@@ -224,10 +224,10 @@ class DataPreprocessor {
*
* @param string $table The table name
* @param string $id The uid value of the record (integer). Can also be a string (NEW-something) if the record is a NEW record.
* @param integer $pid The pid integer. For existing records this is of course the row's "pid" field. For new records it can be either a page id (positive) or a pointer to another record from the SAME table (negative) after which the record should be inserted (or on same page)
* @param int $pid The pid integer. For existing records this is of course the row's "pid" field. For new records it can be either a page id (positive) or a pointer to another record from the SAME table (negative) after which the record should be inserted (or on same page)
* @param array $row The row of the current record. If NEW record, then it may be loaded with default values (by eg. fetchRecord()).
* @param array $TSconfig Tsconfig array
* @param integer $tscPID PAGE TSconfig pid
* @param int $tscPID PAGE TSconfig pid
* @return array Processed record data
* @see renderRecord()
*/
......@@ -458,9 +458,9 @@ class DataPreprocessor {
*
* @param array $totalRecordContent The array of values which has been processed according to their type (eg. "group" or "select")
* @param array $types_fieldConfig The "types" configuration for the current display of fields.
* @param integer $tscPID PAGE TSconfig PID
* @param int $tscPID PAGE TSconfig PID
* @param string $table Table name
* @param integer $pid PID value
* @param int $pid PID value
* @return array The processed version of $totalRecordContent
* @access private
*/
......@@ -877,8 +877,8 @@ class DataPreprocessor {
* Sets the lock for a record from table/id, IF $this->lockRecords is set!
*
* @param string $table The table name
* @param integer $id The id of the record
* @param integer $pid The pid of the record
* @param int $id The id of the record
* @param int $pid The pid of the record
* @return void
*/
public function lockRecord($table, $id, $pid = 0) {
......@@ -891,7 +891,7 @@ class DataPreprocessor {
* Dummy function, can be used to "register" records. Used by eg. the "show_item" script.
*
* @param string $table Table name
* @param integer $id Record id
* @param int $id Record id
* @param string $field Field name
* @param string $content Field content.
* @return void
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment