PHP 클래스 LdapTools\Utilities\ADTimeSpan

또한 보기: https://technet.microsoft.com/en-us/library/cc753858%28v=ws.10%29.aspx
저자: Chad Sikorra ([email protected])
파일 보기 프로젝트 열기: ldaptools/ldaptools

보호된 프로퍼티들

프로퍼티 타입 설명
$days integer
$hours integer
$minutes integer
$never boolean
$seconds integer

공개 메소드들

메소드 설명
__construct ( string $time = '' ) Pass the time in I8 format, which is represented in intervals of -100 nanoseconds.
__toString ( ) : string
getDays ( ) : integer Get the days specified for the time span.
getHours ( ) : integer Get the hours specified for the time span.
getInstance ( integer $value, string $unit ) Get an instance of the class based on a specific time unit as the second parameter.
getLdapValue ( ) : string Get the value of all the time units in the format that LDAP expects it in.
getMinutes ( ) : integer Get the minutes specified for the time span.
getNever ( ) : boolean Whether the time span value is considered 'Never'. This is a special value in AD that makes the time span indefinite and is represented by a value of -9223372036854775808.
getSeconds ( ) : integer Get the seconds specified for the time span.
setDays ( integer $days ) Set the days specified for the time span.
setHours ( integer $hours ) Set the hours specified for the time span.
setMinutes ( integer $minutes ) Set the minutes specified for the time span.
setNever ( boolean $value )
setSeconds ( integer $seconds ) Set the seconds specified for the time span.

보호된 메소드들

메소드 설명
setAndVerify ( integer $value, string $interval ) Verify the value is an integer and set the correct interval value.
setValuesFromLdap ( integer $time ) Given a time format from LDAP break it down into its individual time units and set them.

메소드 상세

__construct() 공개 메소드

Pass the time in I8 format, which is represented in intervals of -100 nanoseconds.
public __construct ( string $time = '' )
$time string

__toString() 공개 메소드

public __toString ( ) : string
리턴 string

getDays() 공개 메소드

Get the days specified for the time span.
public getDays ( ) : integer
리턴 integer

getHours() 공개 메소드

Get the hours specified for the time span.
public getHours ( ) : integer
리턴 integer

getInstance() 공개 정적인 메소드

Get an instance of the class based on a specific time unit as the second parameter.
public static getInstance ( integer $value, string $unit )
$value integer The time value.
$unit string The time unit. One of the constants of this class: DAYS, HOURS, MINUTES, SECONDS.

getLdapValue() 공개 메소드

Get the value of all the time units in the format that LDAP expects it in.
public getLdapValue ( ) : string
리턴 string

getMinutes() 공개 메소드

Get the minutes specified for the time span.
public getMinutes ( ) : integer
리턴 integer

getNever() 공개 메소드

Whether the time span value is considered 'Never'. This is a special value in AD that makes the time span indefinite and is represented by a value of -9223372036854775808.
public getNever ( ) : boolean
리턴 boolean

getSeconds() 공개 메소드

Get the seconds specified for the time span.
public getSeconds ( ) : integer
리턴 integer

setAndVerify() 보호된 메소드

Verify the value is an integer and set the correct interval value.
protected setAndVerify ( integer $value, string $interval )
$value integer
$interval string

setDays() 공개 메소드

Set the days specified for the time span.
public setDays ( integer $days )
$days integer

setHours() 공개 메소드

Set the hours specified for the time span.
public setHours ( integer $hours )
$hours integer

setMinutes() 공개 메소드

Set the minutes specified for the time span.
public setMinutes ( integer $minutes )
$minutes integer

setNever() 공개 메소드

public setNever ( boolean $value )
$value boolean

setSeconds() 공개 메소드

Set the seconds specified for the time span.
public setSeconds ( integer $seconds )
$seconds integer

setValuesFromLdap() 보호된 메소드

Given a time format from LDAP break it down into its individual time units and set them.
protected setValuesFromLdap ( integer $time )
$time integer

프로퍼티 상세

$days 보호되어 있는 프로퍼티

protected int $days
리턴 integer

$hours 보호되어 있는 프로퍼티

protected int $hours
리턴 integer

$minutes 보호되어 있는 프로퍼티

protected int $minutes
리턴 integer

$never 보호되어 있는 프로퍼티

protected bool $never
리턴 boolean

$seconds 보호되어 있는 프로퍼티

protected int $seconds
리턴 integer