Share » Forums » Developer » How to do this query in class...

How to do this query in class definition() MultiSelect' ?!

How to do this query in class definition() MultiSelect' ?!

Monday 04 August 2003 6:49:01 am - 2 replies

Author Message

Jerry Jalava

Monday 04 August 2003 8:13:33 pm

If I understood you right, then here might be what you are looking for:

[code]
$db =& eZDB::instance();

$asObject = true;

$sqlText = "SELECT ezcontentobject.id, ezcontentobject.owner_id, ezcontentobject.current_version FROM ezcontentobject WHERE ezcontentobject.contentclass_id = '15' and ezcontentobject.owner_id = '$userID' and ezcontentobject.status = '1' ORDER BY ezcontentobject.id limit 1";
$rows =& $db->arrayQuery( $sqlText );

return eZPersistentObject::handleRows( $rows, $class_name, $asObject );
[/code]

Hope this help,
Jerry

Selmah Maxim

Tuesday 05 August 2003 1:02:05 am

yes ... I think so ... but I didn`t see query like this for definition function in all ezp classes !

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu