mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 22:43:47 +01:00
LSattr_html_select_list : change private method to protected to permit class extend
This commit is contained in:
parent
2d7b37f27e
commit
5e3ffcbba5
1 changed files with 4 additions and 4 deletions
|
@ -123,7 +123,7 @@ class LSattr_html_select_list extends LSattr_html{
|
||||||
*
|
*
|
||||||
* @retval array Merged array
|
* @retval array Merged array
|
||||||
**/
|
**/
|
||||||
private function _array_merge() {
|
protected function _array_merge() {
|
||||||
$ret=array();
|
$ret=array();
|
||||||
foreach(func_get_args() as $a) {
|
foreach(func_get_args() as $a) {
|
||||||
foreach($a as $k => $v) {
|
foreach($a as $k => $v) {
|
||||||
|
@ -140,7 +140,7 @@ class LSattr_html_select_list extends LSattr_html{
|
||||||
*
|
*
|
||||||
* @retval void
|
* @retval void
|
||||||
**/
|
**/
|
||||||
private function _sort(&$retInfos) {
|
protected function _sort(&$retInfos) {
|
||||||
if (!isset($this -> config['html_options']['sort']) || $this -> config['html_options']['sort']) {
|
if (!isset($this -> config['html_options']['sort']) || $this -> config['html_options']['sort']) {
|
||||||
uasort($retInfos,array($this,'_sortTwoValues'));
|
uasort($retInfos,array($this,'_sortTwoValues'));
|
||||||
}
|
}
|
||||||
|
@ -154,7 +154,7 @@ class LSattr_html_select_list extends LSattr_html{
|
||||||
* @retval array Tableau associatif des valeurs possible de la liste avec en clé
|
* @retval array Tableau associatif des valeurs possible de la liste avec en clé
|
||||||
* la valeur des balises option et en valeur ce qui sera affiché.
|
* la valeur des balises option et en valeur ce qui sera affiché.
|
||||||
*/
|
*/
|
||||||
private function getLSobjectPossibleValues($conf) {
|
protected function getLSobjectPossibleValues($conf) {
|
||||||
$retInfos = array();
|
$retInfos = array();
|
||||||
|
|
||||||
if ((!isset($conf['object_type'])) || (!isset($conf['value_attribute']))) {
|
if ((!isset($conf['object_type'])) || (!isset($conf['value_attribute']))) {
|
||||||
|
@ -205,7 +205,7 @@ class LSattr_html_select_list extends LSattr_html{
|
||||||
*
|
*
|
||||||
* @retval int Value for uasort
|
* @retval int Value for uasort
|
||||||
**/
|
**/
|
||||||
private function _sortTwoValues(&$va,&$vb) {
|
protected function _sortTwoValues(&$va,&$vb) {
|
||||||
if (isset($this -> config['html_options']['sortDirection']) && $this -> config['html_options']['sortDirection']=='DESC') {
|
if (isset($this -> config['html_options']['sortDirection']) && $this -> config['html_options']['sortDirection']=='DESC') {
|
||||||
$dir=-1;
|
$dir=-1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue