mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-02 23:18:43 +02:00
Code cleanup
SVN:trunk[5973]
This commit is contained in:
@@ -271,11 +271,13 @@ class SearchForm
|
||||
return $sHtml;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param DBObjectSet $oSet
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
/**
|
||||
* @param \DBObjectSet $oSet
|
||||
*
|
||||
* @return array
|
||||
*
|
||||
* @throws \CoreException
|
||||
*/
|
||||
public function GetFields($oSet)
|
||||
{
|
||||
$oSearch = $oSet->GetFilter();
|
||||
@@ -470,17 +472,17 @@ class SearchForm
|
||||
return array('values' => $aAllowedValues);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DBObjectSearch $oSearch
|
||||
* @param array $aFields
|
||||
*
|
||||
* @param array $aArgs
|
||||
*
|
||||
* @param bool $bIsRemovable
|
||||
*
|
||||
* @return array
|
||||
* @throws \MissingQueryArgument
|
||||
*/
|
||||
/**
|
||||
* @param \DBObjectSearch $oSearch
|
||||
* @param array $aFields
|
||||
* @param array $aArgs
|
||||
* @param bool $bIsRemovable
|
||||
*
|
||||
* @return array
|
||||
*
|
||||
* @throws \CoreException
|
||||
* @throws \MissingQueryArgument
|
||||
*/
|
||||
public function GetCriterion($oSearch, $aFields, $aArgs = array(), $bIsRemovable = true)
|
||||
{
|
||||
$aOrCriterion = array();
|
||||
@@ -593,16 +595,21 @@ class SearchForm
|
||||
return $aFields;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $sClass
|
||||
* @param $sClassAlias
|
||||
* @param $sAttCode
|
||||
* @param AttributeDefinition $oAttDef
|
||||
* @param $aFields
|
||||
* @param bool $bHasIndex
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
/**
|
||||
* @param string $sClass
|
||||
* @param string $sClassAlias
|
||||
* @param string $sAttCode
|
||||
* @param \AttributeDefinition $oAttDef
|
||||
* @param array $aFields
|
||||
* @param bool $bHasIndex
|
||||
*
|
||||
* @return mixed
|
||||
*
|
||||
* @throws \CoreException
|
||||
* @throws \MissingQueryArgument
|
||||
* @throws \MySQLException
|
||||
* @throws \MySQLHasGoneAwayException
|
||||
*/
|
||||
private function AppendField($sClass, $sClassAlias, $sAttCode, $oAttDef, $aFields, $bHasIndex = false)
|
||||
{
|
||||
if (!is_null($oAttDef) && ($oAttDef->GetSearchType() != AttributeDefinition::SEARCH_WIDGET_TYPE_RAW))
|
||||
@@ -680,12 +687,14 @@ class SearchForm
|
||||
return $aFields;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param DBObjectSearch $oSearch
|
||||
* @param $aContextParams
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
/**
|
||||
* @param \DBObjectSearch $oSearch
|
||||
* @param array $aContextParams
|
||||
*
|
||||
* @return array
|
||||
*
|
||||
* @throws \CoreException
|
||||
*/
|
||||
protected function GetDefaultCriterion($oSearch, &$aContextParams = array())
|
||||
{
|
||||
$aAndCriterion = array();
|
||||
|
||||
Reference in New Issue
Block a user