Sets the User Search Visibility attribute value.
@param string $search_visibility New value for attribute
@return CNabuDataObject Returns self instance to grant chained setters call.
762973
public function setSearchVisibility(string $search_visibility = "N") : CNabuDataObject
    {
        if ($search_visibility === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$search_visibility")
            );
        }
        $this->setValue('nb_user_search_visibility', $search_visibility);
        
        return $this;
    }
102333
def database_set_visibility(object_id, input_params={}, always_retry=True, **kwargs):
    
    return DXHTTPRequest('/%s/setVisibility' % object_id, input_params, always_retry=always_retry, **kwargs)
461743
public function findDisplayableNonPersonalWorkspacesBySearch($search)
    {
        $dql = '
            SELECT w
            FROM Claroline\CoreBundle\Entity\Workspace\Workspace w
            WHERE w.displayable = true
            AND (
                UPPER(w.name) LIKE :search
                OR UPPER(w.code) LIKE :search
            )
            AND NOT EXISTS (
                SELECT u
                FROM Claroline\CoreBundle\Entity\User u
                JOIN u.personalWorkspace pw
                WHERE pw = w
            )
            ORDER BY w.name
        ';

        $search = strtoupper($search);
        $query = $this->_em->createQuery($dql);
        $query->setParameter('search', "%{$search}%");

        return $query->getResult();
    }
211641
public function setAttachment(string $attachment = "F") : CNabuDataObject
    {
        if ($attachment === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$attachment")
            );
        }
        $this->setValue('nb_site_target_attachment', $attachment);
        
        return $this;
    }
438948
def set_visibility(container, subname, visibility_default, visibility_info)
      return unless container || subname || visibility_default || visibility_info
      not_found = true
      visibility_info.collect!{ |info|
        if info["name"] == subname ||
            @options.ignore_case && info["name"].upcase == subname.upcase
          if info["file_or_module"].name == container.name
            container.set_visibility_for([subname], info["visibility"])
            info["entity_is_discovered"] = true
            not_found = false
          end
        end
        info
      }
      if not_found
        return container.set_visibility_for([subname], visibility_default)
      else
        return container
      end
    end
205039
public function setOSNick(string $os_nick) : CNabuDataObject
    {
        if ($os_nick === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$os_nick")
            );
        }
        $this->setValue('nb_cluster_user_os_nick', $os_nick);
        
        return $this;
    }
1153039
public function setUseURI(string $use_uri = "N") : CNabuDataObject
    {
        if ($use_uri === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$use_uri")
            );
        }
        $this->setValue('nb_site_map_use_uri', $use_uri);
        
        return $this;
    }
402519
public function setVisibility(string $visibility) {
		if ($visibility !== self::VISIBILITY_PRIVATE
				&& $visibility !== self::VISIBILITY_PROTECTED
				&& $visibility !== self::VISIBILITY_PUBLIC) {
			throw new \InvalidArgumentException(sprintf('The visibility "%s" does not exist.', $visibility));
		}

		$this->visibility = $visibility;

		return $this;
	}
1044901
public function setTargetUseURI(string $target_use_uri = "N") : CNabuDataObject
    {
        if ($target_use_uri === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$target_use_uri")
            );
        }
        $this->setValue('nb_site_target_cta_target_use_uri', $target_use_uri);
        
        return $this;
    }
1296368
public function setSearch($search)
    {
        $this->search = $search;
        $this->queryBuilder->setSearch($search || $this->globalSearch);
        return $this;
    }
956670
public function setOSId(int $os_id) : CNabuDataObject
    {
        if ($os_id === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$os_id")
            );
        }
        $this->setValue('nb_cluster_user_group_os_id', $os_id);
        
        return $this;
    }
933141
public function setVisibility($visibility)
    {
        switch ($visibility) {
            case Modifiers::VISIBILITY_PUBLIC:
                $this->removeModifier(Modifiers::MODIFIER_PRIVATE | Modifiers::MODIFIER_PROTECTED);
                $this->addModifier(Modifiers::MODIFIER_PUBLIC);
                break;
            case Modifiers::VISIBILITY_PROTECTED:
                $this->removeModifier(Modifiers::MODIFIER_PRIVATE | Modifiers::MODIFIER_PUBLIC);
                $this->addModifier(Modifiers::MODIFIER_PROTECTED);
                break;
            case Modifiers::VISIBILITY_PRIVATE:
                $this->removeModifier(Modifiers::MODIFIER_PUBLIC | Modifiers::MODIFIER_PROTECTED);
                $this->addModifier(Modifiers::MODIFIER_PRIVATE);
                break;
            default:
                throw new InvalidArgumentException('Unknown visibility to set.');
        }
    }
1366416
public function setPublicBasePathEnabled(string $public_base_path_enabled = "F") : CNabuDataObject
    {
        if ($public_base_path_enabled === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$public_base_path_enabled")
            );
        }
        $this->setValue('nb_site_public_base_path_enabled', $public_base_path_enabled);
        
        return $this;
    }
495763
public function getVisibilityIdByValue($visibility)
    {

        // query whether or not, the requested visibility is available
        if (isset($this->availableVisibilities[$visibility])) {
            // load the visibility ID, add the mapping and return the ID
            return $this->availableVisibilities[$visibility];
        }

        // throw an exception, if not
        throw new \Exception(
            $this->appendExceptionSuffix(
                sprintf('Found invalid visibility %s', $visibility)
            )
        );
    }
203357
public function setUseCache(string $use_cache = "F") : CNabuDataObject
    {
        if ($use_cache === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$use_cache")
            );
        }
        $this->setValue('nb_site_use_cache', $use_cache);
        
        return $this;
    }
415522
public function setSearch($search)
    {
        $this->_search = $search;
        $this->_queryBuilder->setSearch($search);
        return $this;
    }
195748
public function setIcontactProspectStatusTypeId(int $nb_icontact_prospect_status_type_id) : CNabuDataObject
    {
        if ($nb_icontact_prospect_status_type_id === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$nb_icontact_prospect_status_type_id")
            );
        }
        $this->setValue('nb_icontact_prospect_status_type_id', $nb_icontact_prospect_status_type_id);
        
        return $this;
    }