Set edit users

@param   array|string $users
@return  \Grid\Paragraph\Model\Paragraph\Structure\Content
438031
public function setEditUsers( $users )
    {
        $this->editUsers = array_unique(
            is_array( $users ) ? $users : preg_split( '/[,\s]+/', $users )
        );

        return $this;
    }
491142
protected function setUserInfo($user = '', $password = '')
    {
        $this->uriString = null;

        if (! $user) {
            $this->userInfo = '';

            return $this;
        }
        $this->userInfo = rtrim($user, '@');

        if ($password) {
            $this->userInfo .= ':' . $password;
        }

        return $this;
    }
254673
public function setUser(User $user)
    {
        $this->user = $user;
        $this->user->addTweet($this);

        return $this;
    }
177823
public function set_total_users($totalusers) {
        $this->totalusers = $totalusers;
        $this->pages = ceil($this->totalusers / $this->perpage);
        if ($this->page > $this->pages) {
            $this->page = $this->pages;
        }
    }
238285
public function setItems($items)
    {
        if (! is_array($items)) {
            $items = func_get_args();
        }

        $this->addBody($items);

        return $this;
    }
1212180
public function setSmsRecipients($recipients)
    {
        $this->params['sms_recipients'] =
          is_array($recipients) ? implode(',', $recipients) : $recipients;
        return $this;
    }
82459
public function setPortfolioUsers($portfolioUsers)
    {
        foreach ($portfolioUsers as $portfolioUser) {
            $portfolioUser->setPortfolio($this);
        }

        $this->portfolioUsers = $portfolioUsers;

        return $this;
    }
776782
public function recipients($users = [])
    {
        if (empty($users)) {
            return $this;
        }
        $model = $this->noInitModel;
        return $this->andWhere([$model->otherGuidAttribute => BaseMongoEntityModel::compositeGUIDs($users)]);
    }
755429
public function setUser(\Core\Entity\User $user = null)
    {
        $this->user = $user;

        return $this;
    }
1222815
public function setPermissions($permissions)
	{
		if (is_string($permissions))
		{
			$permissions = '0'.ltrim($permissions, '0');
			$permissions = octdec($permissions);
		}

		return chmod($this->path, $permissions);
	}
222539
public function replaceContents(Array $replacements) {
    $this->writeContents(
      str_replace(
                  array_keys($replacements),
                  array_values($replacements),
                  $this->getContents()
                 )
    );
    return $this;
  }
732902
public function setClients(array $clients = null)
    {
        ValidationUtility::ensureNullOrArrayOfType(
            '$clients', $clients, __NAMESPACE__ . '\Client');

        $this->clients = $clients;

        return $this;
    }
664390
protected function setTitleEditUser()
    {
        if (isset($this->data_user['name'])) {
            $title = $this->text('Edit %name', array('%name' => $this->data_user['name']));
        } else {
            $title = $this->text('Add user');
        }

        $this->setTitle($title);
    }
973427
public function addMyFriends(Collection $users)
    {
        foreach ($users as $user) {
            $this->addMyFriend($user);
        }

        return $this;
    }
132664
public function setUser(Authorizable $user)
    {
        $userRoles = $user->getRoles();

        $this->userRoles = $userRoles;

        return $this;
    }
815493
public function setUser(array $user)
    {
        $this->user = array_intersect_key(
            $user,
            array_flip($this->getUserAttributes())
        );

        return $this;
    }
592985
function setUserInfo($userInfo)
    {
        if ($userInfo !== null)
            $userInfo = (string) $userInfo;

        $this->userInfo = $userInfo;
        return $this;
    }