Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Authentication
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Strategies
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Storages
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Extensions
    • Customers
    • Emails
    • Helpers
    • Invoices
    • Orders
    • Serializers
    • Templates
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Precheck
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Slider
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • BoolType
  • DecimalType
  • EmailStringType
  • IdType
  • IntType
  • NonEmptyStringType
  • StringType

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
Extended by IdType implements IdInterface
Package: Shared\Types
Category: System
Located at Shared/Types/IdType.inc.php

Methods summary

public
# __construct( integer $p_value )

Class Constructor

Class Constructor

Parameters

$p_value

Throws

InvalidArgumentException
On negative values.

Overrides

IntType::__construct
public string
# __toString( )

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

protected integer $value

Instance Value

Instance Value

#
API documentation generated by ApiGen