Overview

Namespaces

  • Nethgui
    • Adapter
    • Authorization
    • Component
    • Controller
      • Collection
      • Table
    • Exception
    • Log
    • Model
    • Module
      • Help
      • Notification
    • Renderer
    • Serializer
    • System
    • Test
      • Tool
      • Unit
        • Nethgui
          • Adapter
            • ParameterSet
          • Authorization
          • Log
          • Module
            • Notification
          • Renderer
          • Serializer
          • System
          • Utility
          • View
        • Test
          • Tool
    • Utility
    • View
    • Widget
      • Xhtml
  • None
  • Test
    • Tool

Classes

  • ArrayAdapter
  • LazyLoaderAdapter
  • MultipleAdapter
  • RecordAdapter
  • RecordKeyAdapter
  • ScalarAdapter
  • TableAdapter
  • TabularValueAdapter

Interfaces

  • AdapterAggregateInterface
  • AdapterAggregationInterface
  • AdapterInterface
  • ModifiableInterface
  • Overview
  • Namespace
  • Class
  • Deprecated

Class RecordAdapter

Handles record-like operations for a database.

The internal value is an hash of values

States: NEW, CLEAN, MODIFIED:{DELETED, DIRTY}

Transactions: CREATED -> CLEAN CREATED -> DIRTY, when the key has been set and does not exist in arr CLEAN -> DIRTY -> DELETED CLEAN -> DELETED DIRTY -> CLEAN

Nethgui\Adapter\RecordAdapter implements Nethgui\Adapter\AdapterInterface, ArrayAccess, IteratorAggregate

Direct known subclasses

Nethgui\Test\Unit\Nethgui\Adapter\RecordAdapterTester
Namespace: Nethgui\Adapter
Author: Davide Principi davide.principi@nethesis.it
Since: 1.0
Located at Adapter/RecordAdapter.php
Methods summary
public
# __construct( ArrayAccess $arr = NULL )
public
# setTableData( ArrayAccess $arr )
public
# setKeyValue( $value )
public
# getKeyValue( )
public
# delete( )

Api

Implementation of

Nethgui\Adapter\AdapterInterface::delete()
public mixed
# get( )

Returns

mixed

Api

Implementation of

Nethgui\Adapter\AdapterInterface::get()
public bool;
# isModified( )

Report if the object state has been changed from the last save()

Report if the object state has been changed from the last save()

Returns

bool;

Api

Implementation of

Nethgui\Adapter\ModifiableInterface::isModified()
public boolean
# save( )

Persist the object state

Persist the object state

Returns

boolean

See

Nethgui\Adapter\RecordAdapter::isModified()

Api

Implementation of

Nethgui\Adapter\ModifiableInterface::save()
public
# set( $value )

Api

Var

mixed $value

Implementation of

Nethgui\Adapter\AdapterInterface::set()
public
# offsetExists( $offset )

Implementation of

ArrayAccess::offsetExists()
public
# offsetGet( $offset )

Implementation of

ArrayAccess::offsetGet()
public
# offsetSet( $offset, $value )

Implementation of

ArrayAccess::offsetSet()
public
# offsetUnset( $offset )

Implementation of

ArrayAccess::offsetUnset()
public
# getIterator( )

Implementation of

IteratorAggregate::getIterator()
Constants summary
integer CREATED
# 0
integer CLEAN
# 1
integer DIRTY
# 2
integer DELETED
# 3
Properties summary
protected ArrayAccess $arr

The records container

The records container

#
Nethgui Framework API documentation generated by ApiGen