You can override the tables_menu_options slot to output nothing.
i.e. add the following method to the application delegate class:
- Code: Select all
function block__tables_menu_options(){
$auth =& Dataface_AuthenticationTool::getInstance();
if ( $auth->isLoggedIn() ){
return PEAR::raiseError("Just use the default");
}
return true;
}
The idea behind this is that if you return a PEAR_Error object from any slot method, it tells xataface to use the default content instead of your slot. Otherwise it uses whatever you output from your slot function.
An alternative would be to use the http authentication module (available in SVN
http://weblite.ca/svn/dataface/modules/Auth/http/trunk/) to use HTTP authentication instead.
-Steve