mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
📝 typo in PHPDoc
This commit is contained in:
@@ -74,7 +74,7 @@ class BrowseBrickController extends BrickController
|
||||
/** @var \Combodo\iTop\Portal\Brick\BrowseBrick $oBrick */
|
||||
$oBrick = $this->get('brick_collection')->getBrickById($sBrickId);
|
||||
|
||||
// Getting availables browse modes
|
||||
// Getting available browse modes
|
||||
$aBrowseModes = $oBrick->GetAvailablesBrowseModes();
|
||||
$aBrowseButtons = array_keys($aBrowseModes);
|
||||
// Getting current browse mode (First from router parameter, then default brick value)
|
||||
@@ -291,7 +291,7 @@ class BrowseBrickController extends BrickController
|
||||
$sLevelAlias = $oRequestManipulator->ReadParam('sLevelAlias', '');
|
||||
$sNodeId = $oRequestManipulator->ReadParam('sNodeId', '');
|
||||
|
||||
// If no values for those parameters, we might be loading page in lazy mode for the first time, therefore the URL doesn't have those informations.
|
||||
// If no values for those parameters, we might be loading page in lazy mode for the first time, therefore the URL doesn't have those information.
|
||||
if (empty($sLevelAlias))
|
||||
{
|
||||
reset($aLevelsProperties);
|
||||
@@ -434,7 +434,7 @@ class BrowseBrickController extends BrickController
|
||||
// - Create a template and specify it in the brick configuration
|
||||
// b) Add a new browse mode :
|
||||
// - Create a template for that browse mode,
|
||||
// - Add the mode to those availables in the brick configuration,
|
||||
// - Add the mode to those available in the brick configuration,
|
||||
// - Create a router and add a route for the new browse mode
|
||||
if ($oBrick->GetPageTemplatePath() !== null)
|
||||
{
|
||||
|
||||
@@ -1063,7 +1063,7 @@ class ObjectFormManager extends FormManager
|
||||
// Also, it would require the field to know the transaction id which it doesn't as of today.
|
||||
InlineImage::OnFormCancel(utils::GetUploadTempId($this->oForm->GetTransactionId()));
|
||||
// Then clean attachments
|
||||
// TODO : This has to be refactored when the function from itop-attachent has been migrated into the core
|
||||
// TODO : This has to be refactored when the function from itop-attachments has been migrated into the core
|
||||
$this->CancelAttachments();
|
||||
}
|
||||
|
||||
@@ -1134,7 +1134,7 @@ class ObjectFormManager extends FormManager
|
||||
// Finalizing images link to object, otherwise it will be cleaned by the GC
|
||||
InlineImage::FinalizeInlineImages($this->oObject);
|
||||
// Finalizing attachments link to object
|
||||
// TODO : This has to be refactored when the function from itop-attachent has been migrated into the core
|
||||
// TODO : This has to be refactored when the function from itop-attachments has been migrated into the core
|
||||
if (isset($aArgs['attachmentIds']))
|
||||
{
|
||||
$this->FinalizeAttachments($aArgs['attachmentIds']);
|
||||
|
||||
@@ -288,7 +288,7 @@ class BrowseBrickHelper
|
||||
}
|
||||
|
||||
/**
|
||||
* Takes $aCurrentRow as a flat array and transform it in another flat array (not objects) with only the necessary informations
|
||||
* Takes $aCurrentRow as a flat array and transform it in another flat array (not objects) with only the necessary information
|
||||
*
|
||||
* eg:
|
||||
* - $aCurrentRow : array('L-1' => ObjectClass1, 'L-1-1' => ObjectClass2, 'L-1-1-1' => ObjectClass3)
|
||||
@@ -419,7 +419,7 @@ class BrowseBrickHelper
|
||||
}
|
||||
|
||||
/**
|
||||
* Takes $aCurrentRow as a flat array to recursvily convert and insert it into a tree array $aItems.
|
||||
* Takes $aCurrentRow as a flat array to recursively convert and insert it into a tree array $aItems.
|
||||
* This is used to build a tree array from a DBObjectSet retrieved with FetchAssoc().
|
||||
*
|
||||
* eg:
|
||||
|
||||
@@ -326,7 +326,7 @@ class ContextManipulatorHelper
|
||||
*/
|
||||
private function PrepareAndExecActionRule($sRuleId, $aSources, DBObject $oDestinationObject)
|
||||
{
|
||||
// Retrieveing current rule
|
||||
// Retrieving current rule
|
||||
$aRule = $this->GetRule($sRuleId);
|
||||
|
||||
// Retrieving source object if needed
|
||||
@@ -453,7 +453,7 @@ class ContextManipulatorHelper
|
||||
{
|
||||
foreach ($aData['rules'] as $sId)
|
||||
{
|
||||
// Retrieveing current rule
|
||||
// Retrieving current rule
|
||||
$aRule = $this->GetRule($sId);
|
||||
|
||||
// For each type of callbacks, we check if there is a rule to apply
|
||||
@@ -493,7 +493,7 @@ class ContextManipulatorHelper
|
||||
}
|
||||
|
||||
/**
|
||||
* Prepares the rules as an array of rules and source objects so it can be tokenised
|
||||
* Prepares the rules as an array of rules and source objects so it can be tokenized
|
||||
*
|
||||
* @param array $aRules
|
||||
* @param array $aObjects
|
||||
@@ -546,7 +546,7 @@ class ContextManipulatorHelper
|
||||
// Preparing rules before making a token
|
||||
$aTokenRules = static::PrepareRulesForToken($aRules, $aObjects);
|
||||
|
||||
// Returning tokenised data
|
||||
// Returning tokenized data
|
||||
return static::EncodeRulesToken($aTokenRules);
|
||||
}
|
||||
|
||||
|
||||
@@ -365,7 +365,7 @@ class LifecycleValidatorHelper
|
||||
$iProfileId = null;
|
||||
|
||||
// We try to find the profile from its name in order to retrieve it's id
|
||||
// - If the regular UserRights addon is installed we check the profiles array
|
||||
// - If the regular UserRights add-on is installed we check the profiles array
|
||||
if (class_exists('ProfilesConfig'))
|
||||
{
|
||||
if (defined($sProfile) && in_array($sProfile, ProfilesConfig::GetProfilesValues()))
|
||||
@@ -384,7 +384,7 @@ class LifecycleValidatorHelper
|
||||
}
|
||||
}
|
||||
}
|
||||
// - Else, we can't find the id from the name as we don't know the used UserRights addon. It has to be a constant
|
||||
// - Else, we can't find the id from the name as we don't know the used UserRights add-on. It has to be a constant
|
||||
else
|
||||
{
|
||||
throw new Exception('Lifecycle validator : Unknown UserRights addon, lifecycle\'s profile must be a constant');
|
||||
|
||||
Reference in New Issue
Block a user