Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationDI
      • ApplicationLatte
      • ApplicationTracy
      • CacheDI
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsDI
      • FormsLatte
      • Framework
      • HttpDI
      • HttpTracy
      • MailDI
      • ReflectionDI
      • SecurityDI
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Conventions
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Utils
  • none
  • Tracy
    • Bridges
      • Nette

Classes

  • ActiveRow
  • GroupedSelection
  • Selection
  • SqlBuilder

Interfaces

  • IRow
  • IRowContainer
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class ActiveRow

Single row representation. ActiveRow is based on the great library NotORM http://www.notorm.com written by Jakub Vrana.

Nette\Database\Table\ActiveRow implements IteratorAggregate, Nette\Database\Table\IRow
Namespace: Nette\Database\Table
Located at Database/Table/ActiveRow.php
Methods summary
public
# __construct( array $data, Nette\Database\Table\Selection $table )
public
# __toString( )
public array
# toArray( )

Returns

array
array
public mixed
# getPrimary( boolean $need = TRUE )

Returns primary key value.

Returns primary key value.

Parameters

$need

Returns

mixed
possible int, string, array, object (Nette\Utils\DateTime)

Implementation of

Nette\Database\Table\IRow::getPrimary()
public string
# getSignature( boolean $need = TRUE )

Returns row signature (composition of primary keys)

Returns row signature (composition of primary keys)

Parameters

$need

Returns

string
string

Implementation of

Nette\Database\Table\IRow::getSignature()
public Nette\Database\Table\IRow
# ref( string $key, string $throughColumn = NULL )

Returns referenced row.

Returns referenced row.

Parameters

$key
$throughColumn

Returns

Nette\Database\Table\IRow
or NULL if the row does not exist

Implementation of

Nette\Database\Table\IRow::ref()
public Nette\Database\Table\GroupedSelection
# related( string $key, string $throughColumn = NULL )

Returns referencing rows.

Returns referencing rows.

Parameters

$key
$throughColumn

Returns

Nette\Database\Table\GroupedSelection
GroupedSelection

Implementation of

Nette\Database\Table\IRow::related()
public boolean
# update( array|Traversable $data )

Updates row.

Updates row.

Parameters

$data
=> value)

Returns

boolean
bool
public integer
# delete( )

Deletes row.

Deletes row.

Returns

integer
number of affected rows
public
# getIterator( )

Implementation of

IteratorAggregate::getIterator()
public
# offsetSet( string $key, string $value )

Stores value in column.

Stores value in column.

Parameters

$key
name
$value
value

Implementation of

ArrayAccess::offsetSet()
public string
# offsetGet( string $key )

Returns value of column.

Returns value of column.

Parameters

$key
name

Returns

string
string

Implementation of

ArrayAccess::offsetGet()
public boolean
# offsetExists( string $key )

Tests if column exists.

Tests if column exists.

Parameters

$key
name

Returns

boolean
bool

Implementation of

ArrayAccess::offsetExists()
public
# offsetUnset( string $key )

Removes column from data.

Removes column from data.

Parameters

$key
name

Implementation of

ArrayAccess::offsetUnset()
public
# __set( $key, $value )
public Nette\Database\Table\ActiveRow|mixed &
# __get( string $key )

Parameters

$key

Returns

Nette\Database\Table\ActiveRow|mixed
ActiveRow|mixed

Throws

Nette\MemberAccessException
Nette\MemberAccessException
public
# __isset( $key )
public
# __unset( $key )
protected
# removeAccessColumn( $key )
Methods inherited from Nette\Database\Table\IRow
getTable(), setTable()
Nette 2.3-20161221 API API documentation generated by ApiGen 2.8.0