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
category |
System |
---|---|
package |
Shared |
subpackage |
Types |
__construct(integer $p_value)
Throws |
|
---|
integer
__toString() : string
deprecated |
v2.7.1.0 To string method is left for backwards compatibility. Use asInt() method instead. |
---|---|
string
asInt() : integer
integer
value : integer
var |
---|
integer