Packages

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • None
  • PHP

Classes

  • NGroupedTableSelection
  • NTableRow
  • NTableSelection
  • Overview
  • Package
  • Class
  • Tree

Class NTableRow

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

NObject
Extended by NTableRow implements IteratorAggregate, ArrayAccess
Package: Nette\Database\Table
Author: Jakub Vrana
Located at Database/Table/ActiveRow.php
Methods summary
public
# __construct( array $data, NTableSelection $table )
public
# __toString( )
public array
# toArray( )

Returns

array
public mixed
# getPrimary( )

Returns primary key value.

Returns primary key value.

Returns

mixed
public NTableRow
# ref( string $key, string $throughColumn = NULL )

Returns referenced row.

Returns referenced row.

Parameters

$key
string
$throughColumn
string

Returns

NTableRow
or NULL if the row does not exist
public NGroupedTableSelection
# related( string $key, string $throughColumn = NULL )

Returns referencing rows.

Returns referencing rows.

Parameters

$key
string
$throughColumn
string

Returns

NGroupedTableSelection
public integer
# update( array $data = NULL )

Updates row.

Updates row.

Parameters

$data
array
or NULL for all modified values

Returns

integer
number of affected rows or FALSE in case of an error
public integer
# delete( )

Deletes row.

Deletes row.

Returns

integer
number of affected rows or FALSE in case of an error
public
# getIterator( )

Implementation of

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

Stores value in column.

Stores value in column.

Parameters

$key
string
column name
$value
string
value

Implementation of

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

Returns value of column.

Returns value of column.

Parameters

$key
string
column name

Returns

string

Implementation of

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

Tests if column exists.

Tests if column exists.

Parameters

$key
string
column name

Returns

boolean

Implementation of

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

Removes column from data.

Removes column from data.

Parameters

$key
string
column name

Implementation of

ArrayAccess::offsetUnset
public
# __set( string $key, mixed $value )

Sets value of a property. Do not call directly.

Sets value of a property. Do not call directly.

Parameters

$key
string
property name
$value
mixed
property value

Throws

MemberAccessException
if the property is not defined or is read-only

Overrides

NObject::__set
public mixed &
# __get( string $key )

Returns property value. Do not call directly.

Returns property value. Do not call directly.

Parameters

$key
string
property name

Returns

mixed
property value

Throws

MemberAccessException
if the property is not defined.

Overrides

NObject::__get
public boolean
# __isset( string $key )

Is property defined?

Is property defined?

Parameters

$key
string
property name

Returns

boolean

Overrides

NObject::__isset
public
# __unset( string $key )

Access to undeclared property.

Access to undeclared property.

Parameters

$key
string
property name

Throws

MemberAccessException

Overrides

NObject::__unset
protected
# getReference( $table, $column )
Methods inherited from NObject
__call(), __callStatic(), extensionMethod(), getReflection()
Nette Framework 2.0.1 (for PHP 5.2, prefixed) API API documentation generated by ApiGen 2.7.0