* Wrap $t_code in bold IF the $dat uid matches $id
*
* @param string $t_code Title string
- * @param array $dat Infomation array with record array inside.
+ * @param array $dat Information array with record array inside.
* @param integer $id The current id.
* @return string The title string.
* @todo Define visibility
******************************************************/
foreach ($this->cssFiles as $cssFileName => $cssFile) {
$this->pageRenderer->addCssFile($cssFile);
- // Load addditional css files to overwrite existing core styles
+ // Load additional css files to overwrite existing core styles
if (!empty($GLOBALS['TBE_STYLES']['stylesheets'][$cssFileName])) {
$this->pageRenderer->addCssFile($GLOBALS['TBE_STYLES']['stylesheets'][$cssFileName]);
}
*/
public function addJavascriptFile($javascriptFile) {
$jsFileAdded = FALSE;
- //TODO add more checks if neccessary
+ //TODO add more checks if necessary
if (file_exists(GeneralUtility::resolveBackPath(PATH_typo3 . $javascriptFile))) {
$this->jsFiles[] = $javascriptFile;
$jsFileAdded = TRUE;
}
/**
- * Returnes the sourcecode to the browser
+ * Returns the sourcecode to the browser
*
* @return void
* @todo Define visibility
}
/**
- * Initialiation of the class
+ * Initialization of the class
*
* @return void
*/
*/
public $cacheCmd;
- // Redirect URL. Script will redirect to this location after performing operations (unless errors has occured)
+ // Redirect URL. Script will redirect to this location after performing operations (unless errors has occurred)
/**
* @todo Define visibility
*/
}
/**
- * Returnes a frameset so our JavaScript Reference isn't lost
+ * Returns a frameset so our JavaScript Reference isn't lost
* Took some brains to figure this one out ;-)
* If Peter wouldn't have been I would've gone insane...
*
', $opt) . '
</select>';
// Add a "Create new relation" link for adding new relations
- // This is neccessary, if the size of the selector is "1" or if
+ // This is necessary, if the size of the selector is "1" or if
// there is only one record item in the select-box, that is selected by default
// The selector-box creates a new relation on using a onChange event (see some line above)
if (!empty($conf['appearance']['createNewRelationLinkTitle'])) {
* );
*
* It is possible to use the array keys '%AND.1', '%AND.2', etc. to prevent
- * overwriting the sub-array. It could be neccessary, if you use complex comparisons.
+ * overwriting the sub-array. It could be necessary, if you use complex comparisons.
*
* The example above means, key1 *AND* key2 (and their values) have to match with
* the $subjectArray and additional one *OR* key3 or key4 have to meet the same
*
* @param array $subjectArray The array to search in
* @param array $searchArray The array with keys and values to search for
- * @param string $type Use '%AND' or '%OR' for comparision
+ * @param string $type Use '%AND' or '%OR' for comparison
* @return boolean The result of the comparison
* @todo Define visibility
*/
*
* @param array $fieldConfig "config" section of the TCA configuration of the related inline field.
* @param string $fieldName The name of the inline field.
- * @param string $value The value in the local table (normally a comma seperated list of the inline record UIDs).
+ * @param string $value The value in the local table (normally a comma separated list of the inline record UIDs).
* @return array Array of related UIDs.
*/
protected function getRelatedInlineFieldUids(array $fieldConfig, $fieldName, $value) {
/**
* Determines whether frontend editing is currently active.
*
- * @return boolean Wheter frontend editing is active
+ * @return boolean Whether frontend editing is active
*/
public function isFrontendEditingActive() {
return $this->extAdmEnabled && ($this->adminPanel->isAdminModuleEnabled('edit') && $this->adminPanel->isAdminModuleOpen('edit') || $GLOBALS['TSFE']->displayEditIcons == 1);
* Trigger field - this field tells the TCEmain that processing should be done on this value!
*
* @param string $fieldName Field name of the RTE field.
- * @return string <input> field of type "hidden" with a flag telling the TCEmain that this fields content should be traansformed back to database state.
+ * @return string <input> field of type "hidden" with a flag telling the TCEmain that this fields content should be transformed back to database state.
* @todo Define visibility
*/
public function triggerField($fieldName) {
*/
public $JScodeArray = array();
- // Additional 'page-end' code could be accommulated in this var. It will be outputted at the end of page before </body> and some other internal page-end code.
+ // Additional 'page-end' code could be accumulated in this var. It will be outputted at the end of page before </body> and some other internal page-end code.
/**
* @todo Define visibility
*/
/**
* Returns TRUE/FALSE if the next level for $id should be expanded - and all levels should, so we always return 1.
*
- * @param integer $id ID (uid) to test for (see extending classes where this is checked againts session data)
+ * @param integer $id ID (uid) to test for (see extending classes where this is checked against session data)
* @return boolean
* @todo Define visibility
*/
/**
* Get user settings
*
- * Returns all user settings, if $key is not specified, otherwise it retuns the value for $key
+ * Returns all user settings, if $key is not specified, otherwise it returns the value for $key
*
* @param string $key Identifier, allows also dotted notation for subarrays
* @return mixed Value associated
*
* @param string $table Table name, present in TCA
* @param array $row Row from table
- * @param boolean $prep If set, result is prepared for output: The output is cropped to a limited lenght (depending on BE_USER->uc['titleLen']) and if no value is found for the title, '<em>[No title]</em>' is returned (localized). Further, the output is htmlspecialchars()'ed
+ * @param boolean $prep If set, result is prepared for output: The output is cropped to a limited length (depending on BE_USER->uc['titleLen']) and if no value is found for the title, '<em>[No title]</em>' is returned (localized). Further, the output is htmlspecialchars()'ed
* @param boolean $forceResult If set, the function always returns an output. If no value is found for the title, '[No title]' is returned (localized).
* @return string
*/
}
/**
- * Crops a title string to a limited lenght and if it really was cropped, wrap it in a <span title="...">|</span>,
+ * Crops a title string to a limited length and if it really was cropped, wrap it in a <span title="...">|</span>,
* which offers a tooltip with the original title when moving mouse over it.
*
* @param string $title The title string to be cropped
***************************************************************/
/**
- * Context that is forwared to backend layout data providers.
+ * Context that is forwarded to backend layout data providers.
*
* @author Oliver Hader <oliver.hader@typo3.org>
*/
*/
public $ext_function = 0;
- // If TRUE, elements will have edit icons (probably this is whethere the user has permission to edit the page content). Set externally.
+ // If TRUE, elements will have edit icons (probably this is whether the user has permission to edit the page content). Set externally.
/**
* @todo Define visibility
*/
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
- * Interface for classes which hook into SC_db_new_content_el and manipulater wizardItems array
+ * Interface for classes which hook into SC_db_new_content_el and manipulator wizardItems array
*
* @author Steffen Kamper <info@sk-typo3.de>
*/
/* - - - - - - - - - - - - - - - - - - - - -
-Topbar (whole upper area), containts Logo and toolbar
+Topbar (whole upper area), contains Logo and toolbar
- - - - - - - - - - - - - - - - - - - - - */
#typo3-logo {
selectedValues.push($(this).prop('value'));
});
- // make a comma-seperated list, if it is a multi-select
+ // make a comma separated list, if it is a multi-select
// set the values to the final hidden field
$(originalFieldEl).val(selectedValues.join(','));
};
});
/**
- * Adds a sequence to Ext.TooltTip::showAt so as to increase vertical offset when anchor position is 'botton'
+ * Adds a sequence to Ext.TooltTip::showAt so as to increase vertical offset when anchor position is 'bottom'
* This positions the tip box closer to the target element when the anchor is on the bottom side of the box
* When anchor position is 'top' or 'bottom', the anchor is pushed slightly to the left in order to align with the help icon, if any
*
this.isInString = '';
this.USmode = 0;
}
-function evalFunc_pol(fortegn, value) {
- return eval (((fortegn=="-")?'-':'')+value);
+function evalFunc_pol(foreign, value) {
+ return eval (((foreign=="-")?'-':'')+value);
}
function evalFunc_evalObjValue(FObj,value) {
var evallist = FObj.evallist;
* @param string field The field which is currently edited
* @param integer uid The uid of the record which is currently edited
* @param integer pid The pid of the record which is currently edited
- * @param integer minimumCharacters the minimum characaters that is need to trigger the initial search
+ * @param integer minimumCharacters the minimum characters that is need to trigger the initial search
* @param string fieldType The TCA type of the field (e.g. group, select, ...)
*/
initialize: function(objectId, table, field, uid, pid, minimumCharacters, fieldType) {
h = Math.min(h, space, this.maxHeight);
/**
- * @internal The calcated height of "h" in the line before seems not working as expected.
- * If i define a min height, the box shold at least use this height also if only one entry is in there
+ * @internal The calculated height of "h" in the line before seems not working as expected.
+ * If i define a min height, the box should at least use this height also if only one entry is in there
*/
//h = this.maxHeight;
/**
* positions a toolbar item (has to have .toolbar-item-menu)
- * @param elementId The parent element ofthe menu to be positioned
+ * @param elementId The parent element of the menu to be positioned
*/
positionMenu: function(elementId) {
}
'vDEF',
TRUE,
),
- 'Field is value for default languge without flexform' => array(
+ 'Field is value for default language without flexform' => array(
'HIDE_L10N_SIBLINGS',
array(),
NULL,
FALSE,
),
- 'Field is value for default languge with flexform' => array(
+ 'Field is value for default language with flexform' => array(
'HIDE_L10N_SIBLINGS',
array(),
'vDEF',
TRUE,
),
- 'Field is value for default languge with sibling' => array(
+ 'Field is value for default language with sibling' => array(
'HIDE_L10N_SIBLINGS',
array(),
'vEN',
}
/**
- * Tests concerning getCommenSelectFields
+ * Tests concerning getCommonSelectFields
*/
/**
* Attaches one backend user to the compare list
*
* @param integer $uid
- * @retun void
+ * @return void
*/
public function addToCompareListAction($uid) {
$this->moduleData->attachUidCompareUser($uid);
* Removes given backend user to the compare list
*
* @param integer $uid
- * @retun void
+ * @return void
*/
public function removeFromCompareListAction($uid) {
$this->moduleData->detachUidCompareUser($uid);
settings {
// This is a dummy entry. It is used in Tx_Beuser_Controller_BackendUserController
// to test that some TypoScript configuration is set.
- // This entry can be removed if extbase setup is made frontend TS independant
+ // This entry can be removed if extbase setup is made frontend TS independent
// or if there are other settings set.
dummy = foo
}
$TYPO3_CONF_VARS['SC_OPTIONS']['ext/install']['compat_version']['cms'] = array(
'title' => 'CMS Frontend',
'version' => 4000000,
- 'description' => '<ul>' . '<li><p>The extention simluatestatic has been removed in TYPO3 6.0</p></li>' . '<li><p>CSS Stylesheets and JavaScript are put into an external file by default.</p>' . '<p>Technically, that means that the default value of "config.inlineStyle2TempFile" is now set to "1" and that of "config.removeDefaultJS" to "external"</p></li>' . '</ul>'
+ 'description' => '<ul>' . '<li><p>The extension simluatestatic has been removed in TYPO3 6.0</p></li>' . '<li><p>CSS Stylesheets and JavaScript are put into an external file by default.</p>' . '<p>Technically, that means that the default value of "config.inlineStyle2TempFile" is now set to "1" and that of "config.removeDefaultJS" to "external"</p></li>' . '</ul>'
);
// Registering hooks for the treelist cache
},
/**
- * This method is used to bind the higlighting function "setElementActive"
+ * This method is used to bind the highlighting function "setElementActive"
* to the mouseover event and the "setElementInactive" to the mouseout event.
*/
enableHighlighting: function() {
},
/**
- * This method is used to unbind the higlighting function "setElementActive"
+ * This method is used to unbind the highlighting function "setElementActive"
* from the mouseover event and the "setElementInactive" from the mouseout event.
*/
disableHighlighting: function() {
<source>Search Form</source>
</trans-unit>
<trans-unit id="forms_search_description" xml:space="preserve">
- <source>Draws a search form and the searchresult if a search is performed.</source>
+ <source>Draws a search form and the search result if a search is performed.</source>
</trans-unit>
<trans-unit id="forms_login_title" xml:space="preserve">
<source>Login Form</source>
/**
* Takes a cell and looks above it if there are any cells that have colspans that
- * spanns into the given cell. This is used when a row was removed from the grid
+ * spans into the given cell. This is used when a row was removed from the grid
* to make sure that no cell with wrong colspans exists in the grid.
*
* @param col integer
},
/**
- * Checks wether a cell can span to the right or not. A cell can span to the right
+ * Checks whether a cell can span to the right or not. A cell can span to the right
* if it is not in the last column and if there is no cell beside it that is
* already overspanned by some other cell.
*
},
/**
- * Checks wether a cell can span down or not.
+ * Checks whether a cell can span down or not.
*
* @param col integer
* @param row integer
If you select a layout or "none", it will override any settings that might have been inherited from pages in the rootline of the current page.
-The selection is inherited automatically by all subpages - so you don't have to set it seperately for each of them.</source>
+The selection is inherited automatically by all subpages - so you don't have to set it separately for each of them.</source>
</trans-unit>
<trans-unit id="_backend_layout_next_level.seeAlso" xml:space="preserve">
<source>pages:backend_layout</source>
<source>Use this to temporarily disable the alternative language overlay for this page.</source>
</trans-unit>
<trans-unit id="hidden.details" xml:space="preserve">
- <source>Setting this option is practical in the phase of adding the extra language. When it is set, the alternative content will not be displayed unless you - as an logged in backend user - enableds the Admin Panel>Preview>Show hidden records option.</source>
+ <source>Setting this option is practical in the phase of adding the extra language. When it is set, the alternative content will not be displayed unless you - as an logged in backend user - enables the Admin Panel>Preview>Show hidden records option.</source>
</trans-unit>
<trans-unit id="_hidden.seeAlso" xml:space="preserve">
<source>pages_language_overlay:starttime,
protected $tagsTable;
/**
- * @var boolean Indicates wether data is compressed or not (requires php zlib)
+ * @var boolean Indicates whether data is compressed or not (requires php zlib)
*/
protected $compression = FALSE;
* Triggers a remap action for a specific record.
*
* Some records are post-processed by the processRemapStack() method (e.g. IRRE children).
- * This method determines wether an action/modification is executed directly to a record
+ * This method determines whether an action/modification is executed directly to a record
* or is postponed to happen after remapping data.
*
* @param string $table Name of the table
* @return void
* @todo Define visibility
*/
- public function errorPush($errNum = T3_ERR_SV_GENERAL, $errMsg = 'Unspecified error occured') {
+ public function errorPush($errNum = T3_ERR_SV_GENERAL, $errMsg = 'Unspecified error occurred') {
array_push($this->error, array('nr' => $errNum, 'msg' => $errMsg));
if (is_object($GLOBALS['TT'])) {
$GLOBALS['TT']->setTSlogMessage($errMsg, 2);
// Get alphabetically sorted file index in array
$fileIndex = GeneralUtility::getAllFilesAndFoldersInPath(array(), $absDirPath, $includedFileExtensions);
// Prepend file contents to $newString
- $prefixLenght = strlen(PATH_site);
+ $prefixLength = strlen(PATH_site);
foreach ($fileIndex as $absFileRef) {
- $relFileRef = substr($absFileRef, $prefixLenght);
+ $relFileRef = substr($absFileRef, $prefixLength);
self::includeFile($relFileRef, $cycle_counter, $returnFiles, $newString, $includedFiles, '', $absDirPath);
}
$newString .= '### <INCLUDE_TYPOSCRIPT: source="DIR:' . $dirPath . '"' . $optionalProperties . '> END:' . LF . LF;
* FOR USE IN ext_tables.php FILES
*
* @param string $extKey Is of course the extension key
- * @param string $path Is the path where the template files (fixed names) include_static.txt (integer list of uids from the table "static_templates"), constants.txt, setup.txt, and include_static_file.txt is found (relative to extPath, eg. 'static/'). The file include_static_file.txt, allows you to include other static templates defined in files, from your static template, and thus corresponds to the field 'include_static_file' in the sys_template table. The syntax for this is a commaseperated list of static templates to include, like: EXT:css_styled_content/static/,EXT:da_newsletter_subscription/static/,EXT:cc_random_image/pi2/static/
+ * @param string $path Is the path where the template files (fixed names) include_static.txt (integer list of uids from the table "static_templates"), constants.txt, setup.txt, and include_static_file.txt is found (relative to extPath, eg. 'static/'). The file include_static_file.txt, allows you to include other static templates defined in files, from your static template, and thus corresponds to the field 'include_static_file' in the sys_template table. The syntax for this is a comma separated list of static templates to include, like: EXT:css_styled_content/static/,EXT:da_newsletter_subscription/static/,EXT:cc_random_image/pi2/static/
* @param string $title Is the title in the selector box.
* @return void
* @see addTypoScript()
* @param integer $includeHeader Whether the HTTP header should be fetched or not. 0=disable, 1=fetch header+content, 2=fetch header only
* @param array $requestHeaders HTTP headers to be used in the request
* @param array $report Error code/message and, if $includeHeader is 1, response meta data (HTTP status and content type)
- * @return mixed The content from the resource given as input. FALSE if an error has occured.
+ * @return mixed The content from the resource given as input. FALSE if an error has occurred.
*/
static public function getUrl($url, $includeHeader = 0, $requestHeaders = FALSE, &$report = NULL) {
$content = FALSE;
}
/**
- * Creates a "real" directory for doing tests. This is neccessary because some file system properties (e.g. permissions)
+ * Creates a "real" directory for doing tests. This is necessary because some file system properties (e.g. permissions)
* cannot be reflected by vfsStream, and some methods (like touch()) don't work there either.
*
* Created directories are automatically destroyed by the tearDownAfterClass() method.
case 'adodb':
// Check if method exists for the current $res object.
// If a table exists in TCA but not in the db, a error
- // occured because $res is not a valid object.
+ // occurred because $res is not a valid object.
if (method_exists($res, 'FetchRow')) {
$output = $res->FetchRow();
$tableList = $res->TYPO3_DBAL_tableList;
case 'adodb':
// Check if method exists for the current $res object.
// If a table exists in TCA but not in the db, a error
- // occured because $res is not a valid object.
+ // occurred because $res is not a valid object.
if (method_exists($res, 'FetchRow')) {
$output = $res->FetchRow();
// Removing all assoc. keys.
* @param integer $pageUid target page. See TypoLink destination
* @param integer $pageType type of the target page. See typolink.parameter
* @param boolean $noCache set this to disable caching for the target page. You should not need this.
- * @param boolean $noCacheHash set this to supress the cHash query parameter created by TypoLink. You should not need this.
+ * @param boolean $noCacheHash set this to suppress the cHash query parameter created by TypoLink. You should not need this.
* @param string $section the anchor to be added to the URI
* @param string $format The requested format, e.g. ".html
* @param boolean $linkAccessRestrictedPages If set, links pointing to access restricted pages will still link to the page even though the page cannot be accessed.
/**
* Get a list of all Warning objects recursively. The result is an array,
- * where the key is the property path where the warning occured, and the
+ * where the key is the property path where the warning occurred, and the
* value is a list of all warnings (stored as array)
*
* @return array<\TYPO3\CMS\Extbase\Error\Warning>
}
/**
- * @return array<\TYPO3\CMS\Extbase\Error\Result> Validation errors which have occured.
+ * @return array<\TYPO3\CMS\Extbase\Error\Result> Validation errors which have occurred.
* @api
*/
public function getValidationResults() {
*
* @param object $arguments The arguments object that should be validated
* @throws \InvalidArgumentException
- * @return boolean TRUE if all arguments are valid, FALSE if an error occured
+ * @return boolean TRUE if all arguments are valid, FALSE if an error occurred
*/
public function isValid($arguments) {
if (!$arguments instanceof \TYPO3\CMS\Extbase\Mvc\Controller\Arguments) {
* @param object $arguments The arguments object containing the property (argument) to validate
* @param string $argumentName Name of the property (ie. name of the argument) to validate
* @throws \InvalidArgumentException
- * @return boolean TRUE if the argument is valid, FALSE if an error occured
+ * @return boolean TRUE if the argument is valid, FALSE if an error occurred
*/
public function isPropertyValid($arguments, $argumentName) {
if (!$arguments instanceof \TYPO3\CMS\Extbase\Mvc\Controller\Arguments) {
protected $originalRequestMappingResults = NULL;
/**
- * @var array Errors that occured during this request
+ * @var array Errors that occurred during this request
* @deprecated since Extbase 1.4.0, will be removed two versions after Extbase 6.1
*/
protected $errors = array();
}
/**
- * Set errors that occured during the request (e.g. argument mapping errors)
+ * Set errors that occurred during the request (e.g. argument mapping errors)
*
* @param array $errors An array of \TYPO3\CMS\Extbase\Error\Error objects
*
}
/**
- * Get errors that occured during the request (e.g. argument mapping errors)
+ * Get errors that occurred during the request (e.g. argument mapping errors)
*
- * @return array The errors that occured during the request
+ * @return array The errors that occurred during the request
* @deprecated since Extbase 1.4.0, will be removed two versions after Extbase 6.1
*/
public function getErrors() {
}
/**
- * Returns the original request. Filled only if a property mapping error occured.
+ * Returns the original request. Filled only if a property mapping error occurred.
*
* @return \TYPO3\CMS\Extbase\Mvc\Request the original request.
*/
* Deletes an object
*
* @param \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $object The object to be removed from the storage
- * @param boolean $markAsDeleted Wether to just flag the row deleted (default) or really delete it
+ * @param boolean $markAsDeleted Whether to just flag the row deleted (default) or really delete it
* @return void
*/
protected function removeEntity(\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $object, $markAsDeleted = TRUE) {
class MappingResults {
/**
- * @var array An array of the occured errors
+ * @var array An array of the occurred errors
*/
protected $errors = array();
/**
- * @var array An array of the occured warnings
+ * @var array An array of the occurred warnings
*/
protected $warnings = array();
* Adds an error to the mapping results. This might be for example a
* validation or mapping error
*
- * @param \TYPO3\CMS\Extbase\Error\Error $error The occured error
+ * @param \TYPO3\CMS\Extbase\Error\Error $error The occurred error
* @param string $propertyName The name of the property which caused the error
*/
public function addError(\TYPO3\CMS\Extbase\Error\Error $error, $propertyName) {
}
/**
- * Returns all errors that occured so far
+ * Returns all errors that occurred so far
*
* @return array Array of \TYPO3\CMS\Extbase\Error\Error
*/
/**
* Returns true if any error was recognized
*
- * @return boolean True if an error occured
+ * @return boolean True if an error occurred
*/
public function hasErrors() {
return count($this->errors) > 0;
* Adds a warning to the mapping results. This might be for example a
* property that could not be mapped but wasn't marked as required.
*
- * @param string $warning The occured warning
+ * @param string $warning The occurred warning
* @param string $propertyName The name of the property which caused the error
*/
public function addWarning($warning, $propertyName) {
}
/**
- * Returns all warnings that occured so far
+ * Returns all warnings that occurred so far
*
* @return array Array of warnings
*/
/**
* Returns TRUE if any warning was recognized
*
- * @return boolean TRUE if a warning occured
+ * @return boolean TRUE if a warning occurred
*/
public function hasWarnings() {
return count($this->warnings) > 0;
protected $typeConverters = array();
/**
- * A list of property mapping messages (errors, warnings) which have occured on last mapping.
+ * A list of property mapping messages (errors, warnings) which have occurred on last mapping.
*
* @var \TYPO3\CMS\Extbase\Error\Result
*/
/**
* Get all errors for the property
*
- * @return array An array of \TYPO3\CMS\Extbase\Validation\Error objects or an empty array if no errors occured for the property
+ * @return array An array of \TYPO3\CMS\Extbase\Validation\Error objects or an empty array if no errors occurred for the property
*/
public function getErrors() {
return $this->errors;
*
* @param object $object The object containing the property to validate
* @param string $propertyName Name of the property to validate
- * @return boolean TRUE if the property value is valid, FALSE if an error occured
+ * @return boolean TRUE if the property value is valid, FALSE if an error occurred
*
* @deprecated since Extbase 1.4.0, will be removed two versions after Extbase 6.1
*/
/**
* Checks if the given value is valid according to the validator, and returns
- * the Error Messages object which occured.
+ * the Error Messages object which occurred.
*
* @param mixed $value The value that should be validated
* @return \TYPO3\CMS\Extbase\Error\Result
* If at least one error occurred, the result is FALSE.
*
* @param mixed $value The value that should be validated
- * @return boolean TRUE if the value is valid, FALSE if an error occured
+ * @return boolean TRUE if the value is valid, FALSE if an error occurred
*/
public function isValid($value) {
$this->errors = array();
* If at least one error occurred, the result is FALSE.
*
* @param mixed $value The value that should be validated
- * @return boolean TRUE if the value is valid, FALSE if an error occured
+ * @return boolean TRUE if the value is valid, FALSE if an error occurred
* @deprecated since Extbase 1.4.0, will be removed two versions after Extbase 6.1
*/
public function isValid($value) {
* @param object $object The object containing the property to validate
* @param string $propertyName Name of the property to validate
* @throws \InvalidArgumentException
- * @return boolean TRUE if the property value is valid, FALSE if an error occured
+ * @return boolean TRUE if the property value is valid, FALSE if an error occurred
* @api
* @deprecated since Extbase 1.4.0, will be removed two versions after Extbase 6.1
*/
* If at least one error occurred, the result is FALSE.
*
* @param mixed $value The value that should be validated
- * @return boolean TRUE if the value is valid, FALSE if an error occured
+ * @return boolean TRUE if the value is valid, FALSE if an error occurred
*/
public function isValid($value) {
if ($value === NULL) {
* If at least one error occurred, the result is FALSE.
*
* @param mixed $value The value that should be validated
- * @return boolean TRUE if the value is valid, FALSE if an error occured
+ * @return boolean TRUE if the value is valid, FALSE if an error occurred
*/
public function isValid($value) {
if (!is_numeric($value)) {
*
* @param object $object The object containing the property to validate
* @param string $propertyName Name of the property to validate
- * @return boolean TRUE if the property value is valid, FALSE if an error occured
+ * @return boolean TRUE if the property value is valid, FALSE if an error occurred
*
* @deprecated since Extbase 1.4.0, will be removed two versions after Extbase 6.1
*/
public function validateRegardsMultibyteStringsCorrectly() {
// $this->validatorOptions(array('maximum' => 8));
// $this->assertFalse($this->validator->validate('überlang')->hasErrors());
- $this->markTestSkipped('Validator needs to be adjusted regarding multibyte char lenghts.');
+ $this->markTestSkipped('Validator needs to be adjusted regarding multibyte char lengths.');
}
}
* Method returns URL of a resource that contains repository mirrors.
*
* @access public
- * @return string URL of file that contains repository mirros
+ * @return string URL of file that contains repository mirrors
* @see $mirrorListUrl, getMirrorListUrl()
*/
public function getMirrorListUrl() {
}
/**
- * Resolve an extensions dependencys (download, copy and install dependent
+ * Resolve an extensions dependencies (download, copy and install dependent
* extensions) and install the extension
*
* @param \TYPO3\CMS\Extensionmanager\Domain\Model\Extension $extension
}
/**
- * Converts string dependencys to an object storage of dependencies
+ * Converts string dependencies to an object storage of dependencies
*
* @param string $dependencies
* @return \SplObjectStorage
protected $title = NULL;
/**
- * Returns an assoziative array of all mirror properties.
+ * Returns an associative array of all mirror properties.
*
* Valid array keys of returned array are:
* country, host, path, sponsorlink, sponsorlogo, sponsorname, title
* with PHP >= 5.1.0.
*
* @author Marcus Krause <marcus#exp2010@t3sec.info>
- * @autho Steffen Kamper <info@sk-typo3.de>
+ * @author Steffen Kamper <info@sk-typo3.de>
* @sincer 2010-02-19
*/
class MirrorXmlPullParser extends \TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractMirrorXmlParser implements \SplSubject {
* Returns true, if ext_update class says it wants to run.
*
* @param string $extensionKey extension key
- * @return mixed NULL, if update is not availabel, else update script return
+ * @return mixed NULL, if update is not available, else update script return
*/
public function executeUpdateIfNeeded($extensionKey) {
$this->requireUpdateScript($extensionKey);
/**
* Returns string meant to be used as css class
* 'installed' => if an extension is installed
- * 'available' => if an extension is available in the sytem
+ * 'available' => if an extension is available in the system
* '' (empty string) => if neither installed nor available
*
* @param string $needle
<label index="tx_extensionmanager_domain_model_extension.integerversion">Integer Version</label>
<label index="tx_extensionmanager_domain_model_repository">Repository</label>
- <label index="tx_extensionmanager_domain_model_repository.title">Titel</label>
+ <label index="tx_extensionmanager_domain_model_repository.title">Title</label>
<label index="tx_extensionmanager_domain_model_repository.description">Description</label>
<label index="tx_extensionmanager_domain_model_repository.wsdlUrl">WSDL URL</label>
<label index="tx_extensionmanager_domain_model_repository.mirrorListUrl">Mirror list URL</label>
/**
* @test
*/
- public function installCallsLoadExtenion() {
+ public function installCallsLoadExtension() {
$this->installMock->expects($this->once())->method('loadExtension');
$this->installMock->install($this->extensionKey);
}
Description
Define the Storage Folder with the Website User Records, using a comma
- seperated list or single value
+ separated list or single value
Default
{$styles.content.loginform.pid}
plugin.tx_felogin_pi1 {
- #storagePid - where are the user records? use single value or a commaseperated list
+ #storagePid - where are the user records? use single value or a comma separated list
storagePid = {$styles.content.loginform.pid}
recursive =
ATagParams = rel="nofollow"
}
- #preserve GET vars - define "all" or commaseperated list of GET-vars that should be included by link generation
+ #preserve GET vars - define "all" or comma separated list of GET-vars that should be included by link generation
preserveGETvars = all
public function menuConfig() {
// MENU-ITEMS:
// If array, then it's a selector box menu
- // If empty string it's just a variable, that'll be saved.
+ // If empty string it's just a variable, that will be saved.
// Values NOT in this array will not be saved in the settings-array for the module.
$this->MOD_MENU = array(
'sort' => '',
}
/**
- * Returns list URL; This is the URL of the current script with id and imagemode parameters, thats all.
+ * Returns list URL; This is the URL of the current script with id and imagemode parameters, that's all.
* The URL however is not relative (with the backpath), otherwise GeneralUtility::sanitizeLocalUrl() would say that
* the URL would be invalid
*
***************************************************************/
/**
- * Interface for classes which hook into file list module and manipulateds edit icon array
+ * Interface for classes which hook into file list module and manipulated edit icon array
*
* @author Steffen Kamper <info@sk-typo3.de>
*/
$value = NULL;
if ($this->hasArgument('value')) {
$value = $this->arguments['value'];
- } elseif ($this->configurationManager->isFeatureEnabled('rewrittenPropertyMapper') && $this->hasMappingErrorOccured()) {
+ } elseif ($this->configurationManager->isFeatureEnabled('rewrittenPropertyMapper') && $this->hasMappingErrorOccurred()) {
$value = $this->getLastSubmittedFormData();
} elseif ($this->isObjectAccessorMode() && $this->viewHelperVariableContainer->exists('TYPO3\\CMS\\Fluid\\ViewHelpers\\FormViewHelper', 'formObject')) {
$this->addAdditionalIdentityPropertiesIfNeeded();
}
/**
- * Checks if a property mapping error has occured in the last request.
+ * Checks if a property mapping error has occurred in the last request.
*
- * @return boolean TRUE if a mapping error occured, FALSE otherwise
+ * @return boolean TRUE if a mapping error occurred, FALSE otherwise
*/
- protected function hasMappingErrorOccured() {
+ protected function hasMappingErrorOccurred() {
return $this->controllerContext->getRequest()->getOriginalRequest() !== NULL;
}
/**
* Get the form data which has last been submitted; only returns valid data in case
- * a property mapping error has occured. Check with hasMappingErrorOccured() before!
+ * a property mapping error has occurred. Check with hasMappingErrorOccurred() before!
*
* @return mixed
*/
$nameAttribute = $this->getName();
$valueAttribute = $this->getValue();
if ($this->isObjectAccessorMode()) {
- if ($this->hasMappingErrorOccured()) {
+ if ($this->hasMappingErrorOccurred()) {
$propertyValue = $this->getLastSubmittedFormData();
} else {
$propertyValue = $this->getPropertyValue();
$nameAttribute = $this->getName();
$valueAttribute = $this->getValue();
if ($checked === NULL && $this->isObjectAccessorMode()) {
- if ($this->hasMappingErrorOccured()) {
+ if ($this->hasMappingErrorOccurred()) {
$propertyValue = $this->getLastSubmittedFormData();
} else {
$propertyValue = $this->getPropertyValue();
/**
* Class FileMetadataTranslationAspect
*
- * We do not have AOP in TYPO3 for now, thus the acspect which
+ * We do not have AOP in TYPO3 for now, thus the aspect which
* deals with metadata translation is a slot which reacts on a signal
* in the Index\MetadataRepository.
*
*/
public $recordRegister = array();
- // Containig hooks for userdefined cObjects
+ // Containing hooks for userdefined cObjects
/**
* @todo Define visibility
*/
}
/**
- * Implements the stdWrap property "crop" which is a modified "substr" function allowing to limit a string lenght to a certain number of chars (from either start or end of string) and having a pre/postfix applied if the string really was cropped.
+ * Implements the stdWrap property "crop" which is a modified "substr" function allowing to limit a string length to a certain number of chars (from either start or end of string) and having a pre/postfix applied if the string really was cropped.
*
* @param string $content The string to perform the operation on
* @param string $options The parameters splitted by "|": First parameter is the max number of chars of the string. Negative value means cropping from end of string. Second parameter is the pre/postfix string to apply if cropping occurs. Third parameter is a boolean value. If set then crop will be applied at nearest space.
*
* @param mixed $inputValue Comma-separated list of values to look up
* @param array $conf TS-configuration array, see TSref for details
- * @return string String of translated values, seperated by $delimiter. If no matches were found, the input value is simply returned.
+ * @return string String of translated values, separated by $delimiter. If no matches were found, the input value is simply returned.
* @todo It would be nice it this function basically looked up any type of value, db-relations etc.
* @todo Define visibility
*/
* Mount Pages are also descended but notice that these ID numbers are not
* useful for links unless the correct MPvar is set.
*
- * @param integer $id The id of the start page from which point in the page tree to decend. IF NEGATIVE the id itself is included in the end of the list (only if $begin is 0) AND the output does NOT contain a last comma. Recommended since it will resolve the input ID for mount pages correctly and also check if the start ID actually exists!
- * @param integer $depth The number of levels to decend. If you want to decend infinitely, just set this to 100 or so. Should be at least "1" since zero will just make the function return (no decend...)
+ * @param integer $id The id of the start page from which point in the page tree to descend. IF NEGATIVE the id itself is included in the end of the list (only if $begin is 0) AND the output does NOT contain a last comma. Recommended since it will resolve the input ID for mount pages correctly and also check if the start ID actually exists!
+ * @param integer $depth The number of levels to descend. If you want to descend infinitely, just set this to 100 or so. Should be at least "1" since zero will just make the function return (no decend...)
* @param integer $begin Is an optional integer that determines at which level in the tree to start collecting uid's. Zero means 'start right away', 1 = 'next level and out'
* @param boolean $dontCheckEnableFields See function description
* @param string $addSelectFields Additional fields to select. Syntax: ",[fieldname],[fieldname],...
* @param string $moreWhereClauses Additional where clauses. Syntax: " AND [fieldname]=[value] AND ...
* @param array $prevId_array array of IDs from previous recursions. In order to prevent infinite loops with mount pages.
* @param integer $recursionLevel Internal: Zero for the first recursion, incremented for each recursive call.
- * @return string Returns the list of ids as a comma seperated string
+ * @return string Returns the list of ids as a comma separated string
* @see \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::checkEnableFields(), \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::checkPagerecordForIncludeSection()
*/
public function getTreeList($id, $depth, $begin = 0, $dontCheckEnableFields = FALSE, $addSelectFields = '', $moreWhereClauses = '', array $prevId_array = array(), $recursionLevel = 0) {
);
/**
- * htlm5 tag attributes
+ * html5 tag attributes
*/
public $html5TagAttributes = array(
'autoPlay',
* Generating navigation / menus from TypoScript
*
* Base class. The HMENU content object uses this (or more precisely one of the extension classes).
- * Amoung others the class generates an array of menuitems. Thereafter functions from the subclasses are called.
+ * Among others the class generates an array of menuitems. Thereafter functions from the subclasses are called.
* The class is ALWAYS used through extension classes (like GraphicalMenuContentObject or TextMenuContentObject which are classics) and
*
* @author Kasper Skårhøj <kasperYYYY@typo3.com>
}
/**
- * Will traverse input array with configuratoin per-item and create corresponding GIF files for the menu.
+ * Will traverse input array with configuration per-item and create corresponding GIF files for the menu.
* The data of the files are stored in $this->result
*
* @param array $conf Array with configuration for each item.
}
/**
- * Will traverse input array with configuratoin per-item and create corresponding GIF files for the menu.
+ * Will traverse input array with configuration per-item and create corresponding GIF files for the menu.
* The data of the files are stored in $this->result
*
* @param array $conf Array with configuration for each item.
$formCode = '';
$levelConf = $this->mconf[$a . '.'];
$length = $levelConf['width'] ?: 14;
- $lenghtStr = '';
+ $lengthStr = '';
for ($b = 0; $b < $length; $b++) {
- $lenghtStr .= '_';
+ $lengthStr .= '_';
}
$height = $levelConf['elements'] ?: 5;
$formCode .= '<select name="selector' . $a . '" onchange="' . $this->JSMenuName . '.act(' . $a . ');"' . ($levelConf['additionalParams'] ? ' ' . $levelConf['additionalParams'] : '') . '>';
for ($b = 0; $b < $height; $b++) {
$formCode .= '<option value="0">';
if ($b == 0) {
- $formCode .= $lenghtStr;
+ $formCode .= $lengthStr;
}
$formCode .= '</option>';
}
*/
public $operator_translate_table_caseinsensitive = TRUE;
- // case-sensitiv. Defineres the words, which will be operators between words
+ // case-sensitive. Defines the words, which will be operators between words
/**
* @todo Define visibility
*/
* @param string $origSword The raw sword string from outside
* @param string $specchars Special chars which are used as operators (+- is default)
* @param string $delchars Special chars which are deleted if the append the searchword (+-., is default)
- * @return mixed Returns an ARRAY if there were search words, othervise the return value may be unset.
+ * @return mixed Returns an ARRAY if there were search words, otherwise the return value may be unset.
* @todo Define visibility
*/
public function split($origSword, $specchars = '+-', $delchars = '+.,-') {
\TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($_funcRef, $_params, $this);
}
}
- // Send content-lenght header.
+ // Send content-length header.
// Notice that all HTML content outside the length of the content-length header will be cut off!
// Therefore content of unknown length from included PHP-scripts and if admin users are logged
// in (admin panel might show...) or if debug mode is turned on, we disable it!
$content = $oldContent;
$GLOBALS['TT']->setTSlogMessage('"tidy" returned an empty value!', 2);
}
- $GLOBALS['TT']->setTSlogMessage('"tidy" content lenght: ' . strlen($content), 0);
+ $GLOBALS['TT']->setTSlogMessage('"tidy" content length: ' . strlen($content), 0);
}
return $content;
}
* Rewrites a media provider URL into a canonized form that can be embedded
*
* @param string $url URL to be handled
- * @return string Canonized URL that can be used to embedd
+ * @return string Canonized URL that can be used to embed
*/
public function rewriteUrl($url);
* is enabled.
*
* @param string $outputBuffer Output buffer to compress
- * @param integer $mode One of PHP_OUTPUT_HANDLER_xxx contants
+ * @param integer $mode One of PHP_OUTPUT_HANDLER_xxx constants
* @return string Compressed string
* @see ob_start()
* @see ob_gzhandler()
/**
* Check if the tables provided are configured for usage.
- * This becomes neccessary for extensions that provide additional database
+ * This becomes necessary for extensions that provide additional database
* functionality like indexed_search_mysql.
*
* @param string $table_list Comma-separated list of tables
/**
* Check if the tables provided are configured for usage. This becomes
- * neccessary for extensions that provide additional database functionality
+ * necessary for extensions that provide additional database functionality
* like indexed_search_mysql.
*
* @param string $tableName Table name to check
/**
* Tries to load the ext_localconf and ext_tables files of all non-core extensions
* Writes current extension name to file and deletes it again when inclusion was
- * successfull.
+ * successful.
*
* @param array $extensions
* @return void
public function performUpdate(array &$dbQueries, &$customMessages) {
$result = FALSE;
if ($this->versionNumber >= 4004000 && !\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('t3skin')) {
- // check wether the table can be truncated or if sysext with tca has to be installed
+ // check whether the table can be truncated or if sysext with tca has to be installed
if ($this->checkForUpdate($customMessages)) {
try {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::loadExtension('t3skin');
protected $updateResult = array();
/**
- * Construtor of the extension model.
+ * Constructor of the extension model.
*
* @param string $key The extension key
* @param string $title Title of the extension
/**
* Setter for the selected
*
- * @param boolean $selected wether the language is available or not
+ * @param boolean $selected whether the language is available or not
* @return void
*/
public function setSelected($selected) {
* Renders an icon as known from the TYPO3 backend
*
* @param string $icon Icon to be used
- * @param string $title Title attribte
- * @param string $class Class attribte
+ * @param string $title Title attribute
+ * @param string $class Class attribute
* @return string the rendered icon
*/
public function render($icon, $title = '', $class = '') {
* @return void
*/
processCell: function(cell) {
- // Intialize
+ // Initialize
var $cell = jQuery(cell);
languageModule.toggleEventHandlers('off');
languageModule.errorCount = 0;
<source>Too many files selected</source>
</trans-unit>
<trans-unit id="fileUpload_errorUploadHttpError" xml:space="preserve">
- <source>A HTTP error occured: {0}</source>
+ <source>A HTTP error occurred: {0}</source>
</trans-unit>
<trans-unit id="fileUpload_errorUploadMissingUrl" xml:space="preserve">
<source>Internal error: No Upload URL set</source>
$isProcessed = TRUE;
} elseif (!empty($loginData['uname'])) {
// It might be the case that during frontend login the OpenID URL is submitted in the username field
- // Since we are a low priority service, and no password has been submitted it is OK to just asume
+ // Since we are a low priority service, and no password has been submitted it is OK to just assume
// we might have gotten an OpenID URL
$loginData['uident_openid'] = $this->normalizeOpenID($loginData['uname']);
$isProcessed = TRUE;
die('Access denied.');
}
-// Register OpenID pocessing service with TYPO3
+// Register OpenID processing service with TYPO3
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addService(
$_EXTKEY,
'auth',
$tce->process_datamap();
$content = self::renderOwnername($this->conf['page'], $this->conf['new_owner_uid'], $this->conf['new_owner_username']);
} else {
- $ajaxObj->setError('An error occured: No page owner uid specified.');
+ $ajaxObj->setError('An error occurred: No page owner uid specified.');
}
break;
case 'show_change_group_selector':
$tce->process_datamap();
$content = self::renderGroupname($this->conf['page'], $this->conf['new_group_uid'], $this->conf['new_group_username']);
} else {
- $ajaxObj->setError('An error occured: No page group uid specified.');
+ $ajaxObj->setError('An error occurred: No page group uid specified.');
}
break;
case 'toggle_edit_lock':
/**
* Module settings, cleansed.
*
- * @var aray
+ * @var array
*/
public $MOD_SETTINGS = array();
*
* Values:
* 0: form field name reference, eg. "data[tt_content][123][image]"
- * 1: htlmArea RTE parameters: editorNo:contentTypo3Language:contentTypo3Charset
+ * 1: htmlArea RTE parameters: editorNo:contentTypo3Language:contentTypo3Charset
* 2: RTE config parameters: RTEtsConfigParams
* 3: allowed types. Eg. "tt_content" or "gif,jpg,jpeg,tif,bmp,pcx,tga,png,pdf,ai"
* 4: IRRE uniqueness: target level object-id to perform actions/checks on, eg. "data[79][tt_address][1][<field>][<foreign_table>]"
*
* @param array $row Record array
* @param string $table Table (record is from)
- * @param string $field Field name for which thumbsnail are to be rendered.
+ * @param string $field Field name for which thumbnail are to be rendered.
* @return string HTML for thumbnails, if any.
* @todo Define visibility
*/
/**
* Creates the URL to this script, including all relevant GPvars
- * Fixed GPvars are id, table, imagemode, returlUrl, search_field, search_levels and showLimit
+ * Fixed GPvars are id, table, imagemode, returnUrl, search_field, search_levels and showLimit
* The GPvars "sortField" and "sortRev" are also included UNLESS they are found in the $exclList variable.
*
* @param string $altId Alternative id value. Enter blank string for the current id ($this->id)
*
* @param string $selectionPrefix: Prefix to select the correct labels (default: 'js.')
* @param string $stripFromSelectionName: Sub-prefix to be removed from label names in the result (default: '')
- * @return array Lables to be used in JavaScript of the current locallang file
+ * @return array Labels to be used in JavaScript of the current locallang file
* @todo Check, whether this method can be moved in a generic way to $GLOBALS['LANG']
*/
protected function getJavaScriptLabelsFromLocallang($selectionPrefix = 'js.', $stripFromSelectionName = '') {
$labels = array_merge((array) $GLOBALS['LOCAL_LANG']['default'], (array) $GLOBALS['LOCAL_LANG'][$GLOBALS['LANG']->lang]);
// Regular expression to strip the selection prefix and possibly something from the label name:
$labelPattern = '#^' . preg_quote($selectionPrefix, '#') . '(' . preg_quote($stripFromSelectionName, '#') . ')?#';
- // Iterate through all locallang lables:
+ // Iterate through all locallang labels:
foreach ($labels as $label => $value) {
if (strpos($label, $selectionPrefix) === 0) {
$key = preg_replace($labelPattern, '', $label);
protected $limit = '';
/**
- * Array with all avaiable FE tables
+ * Array with all available FE tables
*
* @var array
*/
}
/**
- * Checks whether memcached is configured, if that's the case we asume it's also used.
+ * Checks whether memcached is configured, if that's the case we assume it's also used.
*
* @return boolean TRUE if memcached is used, FALSE otherwise.
*/
}
/**
- * Checks whether memcached is configured, if that's the case we asume it's also used.
+ * Checks whether memcached is configured, if that's the case we assume it's also used.
*
* @return boolean TRUE if memcached is used, FALSE otherwise.
*/
}
/**
- * Checks for the existance of the ENABLE_INSTALL_TOOL file.
+ * Checks for the existence of the ENABLE_INSTALL_TOOL file.
*
* @return \TYPO3\CMS\Reports\Status An object representing whether ENABLE_INSTALL_TOOL exists
*/
/**
* Tries to get the highest severity of the system's status first, if
- * something is found it is asumed that the status update task is set up
+ * something is found it is assumed that the status update task is set up
* properly or the status report has been checked manually and we take over
* control over the system warning messages.
*
* @param string $title Status title, eg. "Deprecation log"
* @param string $value Status value, eg. "Disabled"
* @param string $message Optional message further describing the title/value combination
- * Example:, eg "The deprecation log is imporant and does foo, to disable it do bar"
+ * Example:, eg "The deprecation log is important and does foo, to disable it do bar"
* @param integer $severity A severity level. Use one of the constants above!
*/
public function __construct($title, $value, $message = '', $severity = self::OK) {
interface StatusProviderInterface {
/**
- * Returns the staus of an extension or (sub)system
+ * Returns the status of an extension or (sub)system
*
* @return array An array of \TYPO3\CMS\Reports\Status objects
*/
protected $notificationEmail = NULL;
/**
- * Executes the System Status Update task, determing the highest severity of
+ * Executes the System Status Update task, determining the highest severity of
* status reports and saving that to the registry to be displayed at login
* if necessary.
*
* Gets additional fields to render in the form to add/edit a task
*
* @param array $taskInfo Values of the fields from the add/edit task form
- * @param \TYPO3\CMS\Scheduler\Task\AbstractTask $task The task object being eddited. Null when adding a task!
+ * @param \TYPO3\CMS\Scheduler\Task\AbstractTask $task The task object being edited. Null when adding a task!
* @param \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $schedulerModule Reference to the scheduler backend module
* @return array A two dimensional array, array('Identifier' => array('fieldId' => array('code' => '', 'label' => '', 'cshKey' => '', 'cshLabel' => ''))
*/
*
* @param string $icon Icon to be used
* @param string $title Optional title
- * @return strin Content rendered image
+ * @return string Content rendered image
*/
public function render($icon, $title = '') {
if (!empty($icon)) {
* To prepare data for encoding, the createNewKeyPair() method should be called.
* This method returns an instance of \TYPO3\CMS\Rsaauth\Keypair class, which contains
* the private and public keys. Public key is sent to the client to encode data.
- * Private key should be stored somewhere (preferrably in user's session).
+ * Private key should be stored somewhere (preferably in user's session).
*
* To decode data, the decrypt() method should be called with the private key
* created at the previous step and the data to decode. If the data is decoded
abstract class AbstractBackend {
/**
- * Error message for the last operation. Derieved classes should always set
+ * Error message for the last operation. Derived classes should always set
* or clear this variable inside the createNewKeyPair() or decypt().
*
* @var string
/**
* A flag that tells if the factory is initialized. This is to prevent
- * continious creation of backends in case if none of them is available.
+ * continuous creation of backends in case if none of them is available.
*
* @var boolean
*/
/**
* A selected backend. This member is set in the getBackend() function. It
* will not be an abstract backend as shown below but a real class, which is
- * derieved from the \TYPO3\CMS\Rsaauth\Backend\AbstractBackend.
+ * derived from the \TYPO3\CMS\Rsaauth\Backend\AbstractBackend.
*
* @var \TYPO3\CMS\Rsaauth\Backend\AbstractBackend
*/
/**
* Obtains a backend. This function will return a non-abstract class, which
- * is derieved from the \TYPO3\CMS\Rsaauth\Backend\AbstractBackend. Applications should
+ * is derived from the \TYPO3\CMS\Rsaauth\Backend\AbstractBackend. Applications should
* not use any methods that are not declared in the \TYPO3\CMS\Rsaauth\Backend\AbstractBackend.
*
* @return \TYPO3\CMS\Rsaauth\Backend\AbstractBackend A backend
// Backend does not exist yet. Create it.
foreach (self::$availableBackends as $backend) {
$backendObject = \TYPO3\CMS\Core\Utility\GeneralUtility::getUserObj($backend);
- // Check that it is derieved from the proper base class
+ // Check that it is derived from the proper base class
if ($backendObject instanceof \TYPO3\CMS\Rsaauth\Backend\AbstractBackend) {
/** @var $backendObject \TYPO3\CMS\Rsaauth\Backend\AbstractBackend */
if ($backendObject->isAvailable()) {
/**
* An instance of the storage. This member is set in the getStorage() function.
* It will not be an abstract storage as shown below but a real class, which is
- * derieved from the \TYPO3\CMS\Rsaauth\Storage\AbstractStorage.
+ * derived from the \TYPO3\CMS\Rsaauth\Storage\AbstractStorage.
*
- * <!-- Please, keep the variable type! It helps IDEs to provide autocomple! -->
+ * <!-- Please, keep the variable type! It helps IDEs to provide autocomplete! -->
*
* @var \TYPO3\CMS\Rsaauth\Storage\AbstractStorage
*/
/**
* Obtains a storage. This function will return a non-abstract class, which
- * is derieved from \TYPO3\CMS\Rsaauth\Storage\AbstractStorage. Applications should
- * not use anoy methods that are not declared in the \TYPO3\CMS\Rsaauth\Storage\AbstractStorage.
+ * is derived from \TYPO3\CMS\Rsaauth\Storage\AbstractStorage. Applications should
+ * not use any methods that are not declared in the \TYPO3\CMS\Rsaauth\Storage\AbstractStorage.
*
* @return \TYPO3\CMS\Rsaauth\Storage\AbstractStorage A storage
*/
// Frontend language array
protected $pluginButtons = 'blockstyle';
- // The comma-seperated list of button names that the extension id adding to the htmlArea RTE tollbar
+ // The comma-separated list of button names that the extension id adding to the htmlArea RTE tollbar
protected $pluginLabels = 'blockstylelabel';
- // The comma-seperated list of label names that the extension id adding to the htmlArea RTE tollbar
+ // The comma-separated list of label names that the extension id adding to the htmlArea RTE tollbar
// The name-converting array, converting the button names used in the RTE PageTSConfing to the button id's used by the JS scripts
protected $convertToolbarForHtmlAreaArray = array(
'blockstylelabel' => 'I[Block style label]',
// Frontend language array
protected $pluginButtons = 'textstyle';
- // The comma-seperated list of button names that the extension id adding to the htmlArea RTE tollbar
+ // The comma separated list of button names that the extension id adding to the htmlArea RTE tollbar
protected $pluginLabels = 'textstylelabel';
- // The comma-seperated list of label names that the extension id adding to the htmlArea RTE tollbar
+ // The comma separated list of label names that the extension id adding to the htmlArea RTE tollbar
// The name-converting array, converting the button names used in the RTE PageTSConfing to the button id's used by the JS scripts
protected $convertToolbarForHtmlAreaArray = array(
'textstylelabel' => 'I[text_style]',
Site developers/admins have the ability to configure:
-- wether lang or xml:lang or both are used as language attibute(s);
+- whether lang or xml:lang or both are used as language attibute(s);
- which languages are available in the drop-down list.
***************************************************************/
/**
- * Abtract class with methods needed to be extended
+ * Abstract class with methods needed to be extended
* in a salted hashing class.
*
* @author Marcus Krause <marcus#exp2009@t3sec.info>
}
/**
- * Returns wether all prequesites for the hashing methods are matched
+ * Returns whether all prerequisites for the hashing methods are matched
*
* @return boolean Method available
*/
}
/**
- * Returns wether all prequesites for the hashing methods are matched
+ * Returns whether all prerequisites for the hashing methods are matched
*
* @return boolean Method available
*/
}
/**
- * Returns wether all prequesites for the hashing methods are matched
+ * Returns whether all prerequisites for the hashing methods are matched
*
* @return boolean Method available
*/
public function getSaltLength();
/**
- * Returns wether all prequesites for the hashing methods are matched
+ * Returns whether all prequesites for the hashing methods are matched
*
* @return boolean Method available
*/
/**
* Additional field for salted passwords bulk update task
*
- * @autor Philipp Gampe <typo3@philippgampe.info>
+ * @author Philipp Gampe <typo3@philippgampe.info>
*/
class BulkUpdateFieldProvider implements \TYPO3\CMS\Scheduler\AdditionalFieldProviderInterface {
*
* @author Rainer Kuhn <kuhn@punkt.de>
* @author Marcus Krause <marcus#exp2009@t3sec.info>
- * @param string $mode TYPO3_MODE, wether Configuration for Frontend or Backend should be delivered
+ * @param string $mode TYPO3_MODE, whether Configuration for Frontend or Backend should be delivered
* @return array Extension configuration data
*/
static public function returnExtConf($mode = TYPO3_MODE) {
/**
* Tests authentication procedure with alphabet characters.
*
- * Checks if a "plain-text password" is everytime mapped to the
+ * Checks if a "plain-text password" is every time mapped to the
* same "salted password hash" when using the same salt.
*
* @test
/**
* Tests authentication procedure with numeric characters.
*
- * Checks if a "plain-text password" is everytime mapped to the
+ * Checks if a "plain-text password" is every time mapped to the
* same "salted password hash" when using the same salt.
*
* @test
/**
* Tests authentication procedure with US-ASCII special characters.
*
- * Checks if a "plain-text password" is everytime mapped to the
+ * Checks if a "plain-text password" is every time mapped to the
* same "salted password hash" when using the same salt.
*
* @test
/**
* Tests authentication procedure with latin1 special characters.
*
- * Checks if a "plain-text password" is everytime mapped to the
+ * Checks if a "plain-text password" is every time mapped to the
* same "salted password hash" when using the same salt.
*
* @test
/**
* Tests authentication procedure with latin1 umlauts.
*
- * Checks if a "plain-text password" is everytime mapped to the
+ * Checks if a "plain-text password" is every time mapped to the
* same "salted password hash" when using the same salt.
*
* @test
/**
* Tests authentication procedure with alphabet characters.
*
- * Checks if a "plain-text password" is everytime mapped to the
+ * Checks if a "plain-text password" is every time mapped to the
* same "salted password hash" when using the same salt.
*
* @test
/**
* Tests authentication procedure with numeric characters.
*
- * Checks if a "plain-text password" is everytime mapped to the
+ * Checks if a "plain-text password" is every time mapped to the
* same "salted password hash" when using the same salt.
*
* @test
/**
* Tests authentication procedure with US-ASCII special characters.
*
- * Checks if a "plain-text password" is everytime mapped to the
+ * Checks if a "plain-text password" is every time mapped to the
* same "salted password hash" when using the same salt.
*
* @test
/**
* Tests authentication procedure with latin1 special characters.
*
- * Checks if a "plain-text password" is everytime mapped to the
+ * Checks if a "plain-text password" is every time mapped to the
* same "salted password hash" when using the same salt.
*
* @test
/**
* Tests authentication procedure with latin1 umlauts.
*
- * Checks if a "plain-text password" is everytime mapped to the
+ * Checks if a "plain-text password" is every time mapped to the
* same "salted password hash" when using the same salt.
*
* @test
/**
* Tests authentication procedure with alphabet characters.
*
- * Checks if a "plain-text password" is everytime mapped to the
+ * Checks if a "plain-text password" is every time mapped to the
* same "salted password hash" when using the same salt.
*
* @test
/**
* Tests authentication procedure with numeric characters.
*
- * Checks if a "plain-text password" is everytime mapped to the
+ * Checks if a "plain-text password" is every time mapped to the
* same "salted password hash" when using the same salt.
*
* @test
/**
* Tests authentication procedure with US-ASCII special characters.
*
- * Checks if a "plain-text password" is everytime mapped to the
+ * Checks if a "plain-text password" is every time mapped to the
* same "salted password hash" when using the same salt.
*
* @test
/**
* Tests authentication procedure with latin1 special characters.
*
- * Checks if a "plain-text password" is everytime mapped to the
+ * Checks if a "plain-text password" is every time mapped to the
* same "salted password hash" when using the same salt.
*
* @test
/**
* Tests authentication procedure with latin1 umlauts.
*
- * Checks if a "plain-text password" is everytime mapped to the
+ * Checks if a "plain-text password" is every time mapped to the
* same "salted password hash" when using the same salt.
*
* @test
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
- * This class provides calulations for the cron command format.
+ * This class provides calculations for the cron command format.
*
* @author Markus Friedrich <markus.friedrich@dkd.de>
* @author Christian Kuhn <lolli@schwarzbu.ch>
*
* Special fields like three letter weekdays, ranges and steps are substituted
* to a comma separated list of integers. Example:
- * '2-4 10-40/10 * mar * fri' will be nolmalized to '2,4 10,20,30,40 * * 3 1,2'
+ * '2-4 10-40/10 * mar * fri' will be normalized to '2,4 10,20,30,40 * * 3 1,2'
*
* @author Christian Kuhn <lolli@schwarzbu.ch>
*/
if ((string) $expression === '*') {
$fieldValues = '*';
} else {
- // Fragment espression by , / and - and substitute three letter code of month and weekday to numbers
+ // Fragment expression by , / and - and substitute three letter code of month and weekday to numbers
$listOfCommaValues = explode(',', $expression);
$fieldArray = array();
foreach ($listOfCommaValues as $listElement) {
$left = $rangeArray[0];
$right = $rangeArray[1];
if ($left > $right) {
- throw new \InvalidArgumentException('Unable to convert range to list: Left integer must not be greather than right integer.', 1291237145);
+ throw new \InvalidArgumentException('Unable to convert range to list: Left integer must not be greater than right integer.', 1291237145);
}
$resultListArray = array();
for ($i = $left; $i <= $right; $i++) {
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
- * Aditional fields provider class for usage with the Scheduler's sleep task
+ * Additional fields provider class for usage with the Scheduler's sleep task
*
* @author François Suter <francois@typo3.org>
*/
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
- * Aditional fields provider class for usage with the Scheduler's test task
+ * Additional fields provider class for usage with the Scheduler's test task
*
* @author François Suter <francois@typo3.org>
*/
$cacheConfigurations = $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'];
if (is_array($cacheConfigurations)) {
// Iterate through configured caches and call garbage collection if
- // backend is within selected backends in additonal field of task
+ // backend is within selected backends in additional field of task
foreach ($cacheConfigurations as $cacheName => $cacheConfiguration) {
// The cache backend used for this cache
$usedCacheBackend = $cacheConfiguration['backend'];
-.. _groupting-tasks:
+.. _grouping-tasks:
Grouping tasks together
^^^^^^^^^^^^^^^^^^^^^^^
.. figure:: ../../Images/StoppingATask.png
:alt: Stopping a task
- Stopping a running task from the main scren
+ Stopping a running task from the main screen
In such cases it is possible to use the "stop" button to
* @dataProvider expectedCalculatedTimestampDataProvider
* @param string $cronCommand Cron command
* @param integer $startTimestamp [unused] Timestamp for start of calculation
- * @param string $firstTimestamp Timestamp of the next execution, to be feeded to strtotime
- * @param string $secondTimestamp Timestamp of the further execution, to be feeded to strtotime
+ * @param string $firstTimestamp Timestamp of the next execution, to be fed to strtotime
+ * @param string $secondTimestamp Timestamp of the further execution, to be fed to strtotime
*/
public function calculateNextValueDeterminesCorrectNextCalculatedTimestampOnConsecutiveCall($cronCommand, $startTimestamp, $firstTimestamp, $secondTimestamp) {
$instance = new \TYPO3\CMS\Scheduler\CronCommand\CronCommand($cronCommand, strtotime($firstTimestamp));
<source>Disabled, will not be executed, except manually</source>
</trans-unit>
<trans-unit id="status.legend.failure" xml:space="preserve">
- <source>Failure! An error occured during the last execution (move over bullet for more details)</source>
+ <source>Failure! An error occurred during the last execution (move over bullet for more details)</source>
</trans-unit>
<trans-unit id="status.legend.late" xml:space="preserve">
<source>Late, will run with next execution</source>
*
******************************/
/**
- * Instanciate the form protection before a simulated user is initialized.
+ * Instantiate the form protection before a simulated user is initialized.
*/
public function __construct() {
$this->formProtection = \TYPO3\CMS\Core\FormProtection\FormProtectionFactory::get();
<note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
</trans-unit>
<trans-unit id="option_maxTitleLen.image_descr" xml:space="preserve">
- <source>In this case the Maximum Title lenght is set to 10 - and the result is that titles in the page tree - as well as other places in the backend - will be cropped after 10 characters, then suffixed by "...". The default value is "30".</source>
+ <source>In this case the Maximum Title length is set to 10 - and the result is that titles in the page tree - as well as other places in the backend - will be cropped after 10 characters, then suffixed by "...". The default value is "30".</source>
</trans-unit>
<trans-unit id="option_copyLevels.alttitle" xml:space="preserve">
<source>Recursive Copy</source>
<source>Catalan</source>
</trans-unit>
<trans-unit id="lang_ch" xml:space="preserve">
- <source>Chinese (Simpl)</source>
+ <source>Chinese (Simple)</source>
</trans-unit>
<trans-unit id="lang_cs" xml:space="preserve">
<source>Czech</source>
***************************************************************/
$EM_CONF[$_EXTKEY] = array(
'title' => 'TYPO3 System Services',
- 'description' => 'The core/default sevices. This includes the default authentication services for now.',
+ 'description' => 'The core/default services. This includes the default authentication services for now.',
'category' => 'services',
'shy' => 1,
'dependencies' => '',
}
/**
- * Gemeral overview over the task in the taskcenter menu
+ * General overview over the task in the taskcenter menu
*
* @return string Overview as HTML
*/
/**
* Get all actions of an user. Admins can see any action, all others only those
- * whic are allowed in sys_action record itself.
+ * which are allowed in sys_action record itself.
*
* @return array Array holding every needed information of a sys_action
*/
protected function viewNewBackendUser($record) {
$content = '';
$beRec = BackendUtility::getRecord('be_users', (int)$record['t1_copy_of_user']);
- // A record is neeed which is used as copy for the new user
+ // A record is need which is used as copy for the new user
if (!is_array($beRec)) {
$flashMessage = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessage', $GLOBALS['LANG']->getLL('action_notReady', TRUE), $GLOBALS['LANG']->getLL('action_error'), \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR);
$content .= $flashMessage->render();
} else {
// Save user
$key = $this->saveNewBackendUser($record, $vars);
- // Success messsage
+ // Success message
$flashMessage = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessage', $vars['key'] === 'NEW' ? $GLOBALS['LANG']->getLL('success-user-created') : $GLOBALS['LANG']->getLL('success-user-updated'), $GLOBALS['LANG']->getLL('success'), \TYPO3\CMS\Core\Messaging\FlashMessage::OK);
$content .= $flashMessage->render() . '<br />';
}
$cleanGroupList = array();
// Create an array from the allowed usergroups using the uid as key
$allowedUsergroups = array_flip(explode(',', $actionRecord['t1_allowed_groups']));
- // Walk through the array and check every uid if it is undder the allowed ines
+ // Walk through the array and check every uid if it is under the allowed ines
foreach ($appliedUsergroups as $group) {
if (isset($allowedUsergroups[$group])) {
$cleanGroupList[] = $group;
$record = BackendUtility::getRecord($el['table'], $dbAnalysis->results[$el['table']][$el['id']]);
$title = BackendUtility::getRecordTitle($el['table'], $dbAnalysis->results[$el['table']][$el['id']]);
$description = $GLOBALS['LANG']->sL($GLOBALS['TCA'][$el['table']]['ctrl']['title'], TRUE);
- // @todo: which information could be needfull
+ // @todo: which information could be needful
if (isset($record['crdate'])) {
$description .= ' - ' . BackendUtility::dateTimeAge($record['crdate']);
}
}
/**
- * Adds the neccessary javascript ot the backend
+ * Adds the necessary javascript ot the backend
*
* @return void
*/
}
/**
- * Adds the neccessary css ot the backend
+ * Adds the necessary css ot the backend
*
* @return void
*/
<source>document has been modified</source>
</trans-unit>
<trans-unit id="js.label_errorWhileSaving" xml:space="preserve">
- <source>An error occured while saving the data.</source>
+ <source>An error occurred while saving the data.</source>
</trans-unit>
</body>
</file>
eval(localname+' = new ' + plugin.classname + '();');
var obj = eval(localname);
} catch(e) {
- throw("error occured while trying to make new instance of \"" + plugin.classname + "\"! maybe syntax error or wrong filepath?");
+ throw("error occurred while trying to make new instance of \"" + plugin.classname + "\"! maybe syntax error or wrong filepath?");
return;
}
obj.init(pluginContext,plugin);
]]></default>
</property>
<property name="TCAselectItem" type="array">
- <description><![CDATA[Resolves a comma seperated list of values into the TCA item representation.
+ <description><![CDATA[Resolves a comma separated list of values into the TCA item representation.
.table (string): The Table to look up
.field (string): The field to resolve
/**
* Store a login type in a cookie to save it for future visits
- * Login type means wether you login by username/password or OpenID
+ * Login type means whether you login by username/password or OpenID
*/
setLogintypeCookie: function(type) {
var now = new Date();