Method: openBy($name , $value)

Opens a file where field name $name = value $value. When a single result is found returns true, otherwise returns false.

This method can be used to find documents by more than one SELECT condition by passing arrays of fields and values to the method.

Arguments:

$name (STRING/ARRAY)
$value (STRING/INT/ARRAY)

Returns:

BOOL

Example:

$document->openBy('document_path' , 'news');

Example 2:

$document->openBy(array('documenttype_id','document_node') , array(2,3));

Contact Us

Address: 22a Fishergate York, YO10 4AB · Tel: 01904 636677 · Email: info@dotadmin.com