'flags', 'relation' => 'in_set', 'value' => 'approved' ); $clause[] = array( 'field' => 'flags', 'relation' => 'in_set', 'value' => 'enabled' ); */ $user = $table->get( 'user', null, null, $clause ); echo 'list
' . print_r( $user, true ) . ''; $c = array(); $c1 = array(); $c1[] = array( 'field' => 'user', 'value' => 'gerd' ); $c1[] = array( 'field' => 'realname', 'relation' => 'begins', 'value' => 'gERD' ); $c[] = array( 'type' => 'complex', 'bond' => 'OR', 'clause' => $c1 ); $c2 = array(); $c2[] = array( 'field' => 'user', 'value' => 'bernd' ); $c2[] = array( 'field' => 'realname', 'relation' => 'begins', 'value' => 'bernd' ); $c[] = array( 'type' => 'complex', 'bond' => 'OR', 'clause' => $c2 ); $clause[] = array( 'type' => 'complex', 'bond' => 'OR', 'clause' => $c ); // echo 'Clause
' . print_r( $clause, true ) . ''; /* $uids = $table->getIds( 'user', null, $clause ); echo '
' . print_r( $uids, true ) . ''; $options = array( 'keepfound' => true ); $uids = $table->get( 'user', null, null, $clause, $options ); echo '
' . print_r( $uids, true ) . ''; */ $table->count( 'user' ); $pager = $table->getPager( 'gERD', 'user' ); $pager->browse( '__first' ); $list = $pager->get(); echo 'list
' . print_r( $list, true ) . ''; /* $count = $table->getLastCount(); echo 'Found rows
' . print_r( $count, true ) . ''; $t2 = WBClass::create( 'WBDatasource_Table' ); $t2->getIds( 'user' ); $t3 = WBClass::create( 'WBDatasource_Table' ); $t3->getIds( 'user' ); unset( $table ); unset( $t2 ); unset( $t3 ); */ ?>