Packages

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

Classes

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

Class NTableRow

Single row representation. Selector 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 string
# __toString( )

Returns primary key value.

Returns primary key value.

Returns

string
public array
# toArray( )

Returns

array
public NTableRow
# ref( string $name )

Returns referenced row.

Returns referenced row.

Parameters

$name
string

Returns

NTableRow
or NULL if the row does not exist
public NGroupedTableSelection
# related( string $table )

Returns referencing rows.

Returns referencing rows.

Parameters

$table
string
table name

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 null
# offsetSet( string $key, $value )

Stores value in column.

Stores value in column.

Parameters

$key
string
column name
$value

Returns

null

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 null
# offsetUnset( string $key )

Removes column from data.

Removes column from data.

Parameters

$key
string
column name

Returns

null

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
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.
public boolean
# __isset( string $key )

Is property defined?

Is property defined?

Parameters

$key
string
property name

Returns

boolean
public
# __unset( string $key )

Access to undeclared property.

Access to undeclared property.

Parameters

$key
string
property name

Throws

MemberAccessException
public
# access( $key, $delete = FALSE )
Methods inherited from NObject
__call(), __callStatic(), extensionMethod(), getReflection()
Properties summary
protected NTableSelection $table
#
protected array $data
#

of row data

of row data

Nette Framework 2.0beta1 (for PHP 5.2) API API documentation generated by ApiGen 2.3.0