\Sesha_Entity_StockMapper

The Sesha_Entity_StockMapper class contains all functions related to handling stock mapping in Sesha.

Copyright 2012-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.

Summary

Methods
Properties
Constants
delete()
No public properties found
No constants found
No protected methods found
$_table
$_lazyRelationships
N/A
No private methods found
No private properties found
N/A

Properties

$_table

$_table : string

Inflector doesn't support Horde-style tables yet

Type

string

$_lazyRelationships

$_lazyRelationships : array

Relationships loaded on-demand

Type

array

Methods

delete()

delete(string|\Sesha_Entity_Stock|\Horde_Rdo_Query  $object) : integer

Deletes a stock item from the backend. $object can be either a primary key, an Rdo_Query object, or a Sesha_Entity_Stock object.

This also cleans up attached attributes and categories

Parameters

string|\Sesha_Entity_Stock|\Horde_Rdo_Query $object

The Rdo object, Horde_Rdo_Query, or unique id to delete.

Returns

integer —

Number of objects deleted.