Amiro.CMS API Reference
Amiro.Ru / Manual
Loading search...

The AMI_CatModule_TableItemModifier class

AMI_ModTableItemModifier
   |
   --AMI_Module_TableItemModifier
      |
      --AMI_CatModule_TableItemModifier

• Introduction

AMI_CatModule module table item model modifier.

• Class synopsis

AMI_CatModule_TableItemModifier extends AMI_Module_TableItemModifier {
/* Properties */
// Filed name storing category id in items table
protected string $catIdField = 'id_cat';
/* Inherited Properties */
// Module table model
// Module table item model
// Validator exception on item saving
/* Methods */
// Deletes item from table.
public delete ( [ mixed $id = null ] ) returns bool;
// Saves current item data.
public save ( ) returns AMI_ModTableItemModifier;
/* Inherited Methods */
// Constructor.
public AMI_ModTableItemModifier::__construct ( AMI_ModTable $oTable, AMI_ModTableItem $oTableItem ) returns AMI_ModTableItemModifier;
// Deletes item from table.
public AMI_ModTableItemModifier::delete ( [ mixed $id = null ] ) returns bool;
// Returns default fields and its values on save.
public AMI_ModTableItemModifier::getDefaultsOnSave ( bool $onCreate ) returns array;
// Returns validator exception object validator after save or null.
// Calls when validation failed.
public AMI_ModTableItemModifier::rollback ( $aData, bool $onCreate ) returns void;
// Allows change data model before create / update item.
public AMI_ModTableItemModifier::save ( ) returns void;
// Validates item data.
public AMI_ModTableItemModifier::validate ( $aData, bool $onCreate ) returns AMI_ModTableItemModifier;
}
Tags:
since 5.14.4

• Class Properies

protected string $catIdField

Filed name storing category id in items table

• Class Methods

// Deletes item from table.
public delete ( [ mixed $id = null ] ) returns bool;
  • mixed $id
    Primary key value of item
// Saves current item data.
public save ( ) returns AMI_ModTableItemModifier;

Overrides: AMI_ModTableItemModifier::save().

Tags:
see AMI_ModTableItem::save()
throws AMI_ModTableItemException If validation failed.