/usr/share/horde/sesha/lib/Entity/Stock.php is in php-horde-sesha 1.0.0~beta1-11ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | <?php
class Sesha_Entity_Stock extends Horde_Rdo_Base
{
/**
* Get a single Sesha_Entity_Value object by property
* @params mixed property Sesha_Entity_Property | integer property_id
* @return Sesha_Entity_Value|null A Value if found
*/
public function getValue($property)
{
$am = $this->_mapper->factory->create('Sesha_Entity_ValueMapper');
return $am->findOne(array(
'stock_id' => $this->stock_id,
'property_id' => $property instanceof Sesha_Entity_Property ? $property->property_id : $property
)
);
}
}
|