Class IdType
Class IdType
IMPORTANT:
When you need to cast an Id object to integer, cast it first to string,
because otherwise the following command will return always 1:
EXAMPLE:
$id = new IdType(948);
bad - (int)$id >> 1
good - (int)(string)$id >> 948
-
IntType
-
┗
IdType
implements
IdInterface
Methods summary
public
__construct( integer $p_value )
Class Constructor
Parameters
Throws
InvalidArgumentException
On negative values.
Overrides
public
__toString( void )
: string
Deprecated
v2.7.1.0 To string method is left for backwards compatibility. Use asInt() method instead.
Returns
string
Methods inherited from IntType
asInt()
Properties summary