Autodoc
  • Namespace
  • Class
  • Tree

Namespaces

  • BlueTihi
    • Context
  • Brickrouge
    • Element
      • Nodes
    • Renderer
    • Widget
  • ICanBoogie
    • ActiveRecord
    • AutoConfig
    • CLDR
    • Composer
    • Core
    • Event
    • Exception
    • HTTP
      • Dispatcher
      • Request
    • I18n
      • Translator
    • Mailer
    • Modules
      • Taxonomy
        • Support
      • Thumbnailer
        • Versions
    • Object
    • Operation
      • Dispatcher
    • Prototype
    • Routes
    • Routing
      • Dispatcher
    • Session
  • Icybee
    • ActiveRecord
      • Model
    • ConfigOperation
    • Document
    • EditBlock
    • Element
      • ActionbarContextual
      • ActionbarSearch
      • ActionbarToolbar
    • FormBlock
    • Installer
    • ManageBlock
    • Modules
      • Articles
      • Cache
        • Collection
        • ManageBlock
      • Comments
        • ManageBlock
      • Contents
        • ManageBlock
      • Dashboard
      • Editor
        • Collection
      • Files
        • File
        • ManageBlock
      • Forms
        • Form
        • ManageBlock
      • I18n
      • Images
        • ManageBlock
      • Members
      • Modules
        • ManageBlock
      • Nodes
        • ManageBlock
        • Module
      • Pages
        • BreadcrumbElement
        • LanguagesElement
        • ManageBlock
        • NavigationBranchElement
        • NavigationElement
        • Page
        • PageController
      • Registry
      • Search
      • Seo
      • Sites
        • ManageBlock
      • Taxonomy
        • Terms
          • ManageBlock
        • Vocabulary
          • ManageBlock
      • Users
        • ManageBlock
        • NonceLogin
        • Roles
      • Views
        • ActiveRecordProvider
        • Collection
        • View
    • Operation
      • ActiveRecord
      • Constructor
      • Module
      • Widget
    • Rendering
  • None
  • Patron
  • PHP

Classes

  • ActiveRecordCache
  • CollectDependenciesEvent
  • Connection
  • Connections
  • DateTimePropertySupport
  • Helpers
  • Hooks
  • Model
  • Models
  • Query
  • RunTimeActiveRecordCache
  • Statement
  • Table

Interfaces

  • ActiveRecordCacheInterface

Traits

  • CreatedAtProperty
  • DateTimeProperty
  • UpdatedAtProperty

Exceptions

  • ActiveRecordException
  • ConnectionAlreadyEstablished
  • ConnectionNotDefined
  • ConnectionNotEstablished
  • ModelAlreadyInstantiated
  • ModelNotDefined
  • RecordNotFound
  • ScopeNotDefined
  • StatementInvalid

Functions

  • get_model

Class Statement

A database statement.

PDOStatement implements Traversable
Extended by ICanBoogie\ActiveRecord\Statement
Namespace: ICanBoogie\ActiveRecord
Located at vendor/icanboogie/activerecord/lib/statement.php

Methods summary

public
# __invoke( )

Alias of ICanBoogie\ActiveRecord\Statement::execute().

Alias of ICanBoogie\ActiveRecord\Statement::execute().

The arguments can be provided as an array or a list of arguments:
$statement(1, 2, 3); $statement([ 1, 2, 3 ]);

public
# __get( mixed $property )

Throws

ICanBoogie\PropertyNotDefined
in attempt to get a property that is not defined.
public
# execute( mixed $args = [] )

Executes the statement.

Executes the statement.

The connection queries count is incremented.

Throws

ICanBoogie\ActiveRecord\StatementInvalid
when the execution of the statement fails.

Overrides

PDOStatement::execute
public mixed
# fetchAndClose( integer $fetch_style = PDO::FETCH_BOTH, integer $cursor_orientation = PDO::FETCH_ORI_NEXT, integer $cursor_offset = 0 )

Fetches the first row of the result set and closes the cursor.

Fetches the first row of the result set and closes the cursor.

Parameters

$fetch_style
integer
$fetch_style
$cursor_orientation
integer
$cursor_orientation
$cursor_offset
integer
$cursor_offset

Returns

mixed

See

PDOStatement::fetch()
public string
# fetchColumnAndClose( integer $column_number = 0 )

Fetches a column of the first row of the result set and closes the cursor.

Fetches a column of the first row of the result set and closes the cursor.

Parameters

$column_number
integer
$column_number

Returns

string

See

PDOStatement::fetchColumn()
public array
# fetchGroups( integer $fetch_style, mixed $fetch_argument = null, array $ctor_args = [] )

Returns an array containing all of the result set rows (FETCH_LAZY supported)

Returns an array containing all of the result set rows (FETCH_LAZY supported)

Parameters

$fetch_style
integer
$fetch_style
$fetch_argument
mixed
$fetch_argument
$ctor_args
array
$ctor_args

Returns

array
public ICanBoogie\ActiveRecord\Statement
# mode( mixed $mode )

Set the fetch mode for the statement.

Set the fetch mode for the statement.

Parameters

$mode
mixed
$mode

Returns

ICanBoogie\ActiveRecord\Statement
Return the instance.

Throws

ICanBoogie\ActiveRecord\ActiveRecordException
if the mode cannot be set.

See

http://www.php.net/manual/en/pdostatement.setfetchmode.php
public
# all( mixed $fetch_style = null, mixed $column_index = null, array $ctor_args = null )

Alias for PDOStatement::fetchAll()

Alias for PDOStatement::fetchAll()

Methods inherited from PDOStatement

__sleep(), __wakeup(), bindColumn(), bindParam(), bindValue(), closeCursor(), columnCount(), debugDumpParams(), errorCode(), errorInfo(), fetch(), fetchAll(), fetchColumn(), fetchObject(), getAttribute(), getColumnMeta(), nextRowset(), rowCount(), setAttribute(), setFetchMode()

Magic methods summary

Properties summary

public ICanBoogie\ActiveRecord\Connection $connection
#

The database connection that created this statement.

The database connection that created this statement.

Properties inherited from PDOStatement

$queryString

Magic properties

public read-only array $all
#

An array with the matching records.

An array with the matching records.

public read-only mixed $one
#

The first matching record.

The first matching record.

public read-only string $rc
#

The value of the first column of the first row.

The value of the first column of the first row.

Autodoc API documentation generated by ApiGen 2.8.0