objectSid() public method

The SID is a unique value used to identify the user as a security principal.
public objectSid ( ) : string
return string
示例#1
0
文件: Model.php 项目: adldap2/adldap2
 /**
  * Convert the object into something JSON serializable.
  *
  * @return array
  */
 public function jsonSerialize()
 {
     // We need to remove the object SID and GUID from
     // being serialized as these attributes contain
     // characters that cannot be serialized.
     return Arr::except($this->getAttributes(), [$this->schema->objectSid(), $this->schema->objectGuid()]);
 }
示例#2
0
 /**
  * Finds a record by its Object SID.
  *
  * @param string       $sid
  * @param array|string $columns
  *
  * @return mixed
  */
 public function findBySid($sid, $columns = [])
 {
     return $this->findBy($this->schema->objectSid(), $sid, $columns);
 }