<?php /******************************************************************* * AccountBalance.php * Copyright (C) 2006 Midnight Coders, LLC * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * The software is licensed under the GNU General Public License (GPL) * For details, see http://www.gnu.org/licenses/gpl.txt. ********************************************************************/ // Access to this class s secured in WEB-INF/flex/remoting-config.xml. // Only requests with the right set of credentially will be given access // to invoke method in this class class AccountBalance { // The method is invoked by Flex client with the right set of user credentials // The implementation of the method is not important for the example, only // the fact that unsecure invocations are not allowed public function CheckBalance() { return rand(0, 1000000); } } ?>