public function getMediotecas($force = false)
    {
        if ($this->nb_medioteca_list->isEmpty() || $force) {
            $this->nb_medioteca_list->clear();
            $this->nb_medioteca_list->merge(CNabuMedioteca::getAllMediotecas($this));
        }

        return $this->nb_medioteca_list->getItems();
    }
public function getMediotecas($force = false)
    {
        if ($this->nb_medioteca_list->isEmpty() || $force) {
            $this->nb_medioteca_list->clear();
            $this->nb_medioteca_list->merge(CNabuMedioteca::getAllMediotecas($this));
        }

        return $this->nb_medioteca_list->getItems();
    }
public function getMediotecas ( $ force = false ) { if ( $ this -> nb_medioteca_list -> isEmpty ( ) || $ force ) { $ this -> nb_medioteca_list -> clear ( ) ; $ this -> nb_medioteca_list -> merge ( CNabuMedioteca :: getAllMediotecas ( $ this ) ) ; } return $ this -> nb_medioteca_list -> getItems ( ) ; }
Gets available Medioteca instances in the list.
@param bool $force If true, forces to merge complete list form the storage.
@return array Returns an associative array where the index is the ID of each Medioteca and the value
is the instance.
Gets available Medioteca instances in the list .