BEdita API doc | 4-cactus
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Download

Namespaces

  • BEdita
    • API
      • Auth
      • Controller
        • Admin
        • Component
        • Model
      • Error
      • Event
      • Exception
      • Middleware
      • Model
        • Action
      • Network
        • Exception
      • Shell
      • TestSuite
      • Utility
    • Core
      • Configure
        • Engine
      • Database
        • Type
      • Exception
      • Filesystem
        • Adapter
        • Exception
        • Thumbnail
      • I18n
      • Job
        • Service
      • Mailer
        • Preview
        • Transport
      • Model
        • Action
        • Behavior
        • Entity
        • Table
        • Validation
      • ORM
        • Inheritance
        • Locator
        • Rule
      • Shell
        • Task
      • State
      • TestSuite
        • Fixture
      • Utility

Classes

  • BoolType
  • DateTimeType
  • DateType
  • JsonObjectType

Class BoolType

Custom BoolType class accepting also true and false as strings in input

Cake\Database\Type\BoolType
Extended by BEdita\Core\Database\Type\BoolType
Namespace: BEdita\Core\Database\Type
Located at Core/src/Database/Type/BoolType.php

Methods summary

public boolean|null
# toDatabase( mixed $value, Cake\Database\Driver $driver )

Convert bool data into the database format. true and false as strings are accepted, other strings will cause an InvalidArgumentException

Convert bool data into the database format. true and false as strings are accepted, other strings will cause an InvalidArgumentException

Parameters

$value
The value to convert.
$driver
The driver instance to convert with.

Returns

boolean|null
BEdita API doc | 4-cactus API documentation generated by ApiGen