Adldap\Schemas\SchemaInterface::true PHP Method

true() public method

The AD true bool in string form for conversion.
public true ( ) : string
return string
    public function true();

Usage Example

Example #1
0
 /**
  * Converts the inserted string boolean to a PHP boolean.
  *
  * @param string $bool
  *
  * @return null|bool
  */
 protected function convertStringToBool($bool)
 {
     $bool = strtoupper($bool);
     if ($bool === strtoupper($this->schema->false())) {
         return false;
     } elseif ($bool === strtoupper($this->schema->true())) {
         return true;
     } else {
         return;
     }
 }
SchemaInterface