Demo
[ class tree: Demo ] [ index: Demo ] [ all elements ]

Class: Demo_Module

Source Location: /demo.php

Class Overview

Module_Skeleton
   |
   --Demo_Module



Methods



Class Details

[line 23]


[ Top ]


Class Methods


method test_array [line 47]

array test_array( int $arg1, [int $arg2 = NULL])

array test_array(int[, int])

Demonstration test of returning an array. If invoked through a SOAP call, this would return a three tuple object, non-associative, handled by the function interceptor class




Tags:

return:  associative array containing indicies ret1, ret2, and ret3
privilege:  PRIVILEGE_ALL
access:  public


Parameters:

int   $arg1   integer to add
int   $arg2   integer to add

[ Top ]

method test_exception [line 61]

bool test_exception( [bool $trigger = FALSE])

bool test_exception([bool = false])

Tests exception handling of modules




Tags:

return:  Returns true if no exception to be thrown, exception obj otherwise, which is derived from the Exception class
privilege:  PRIVILEGE_ALL
access:  public


Parameters:

bool   $trigger   whether to trigger an exception or just return true

[ Top ]

method test_scalar [line 77]

int test_scalar( int $arg1, int $arg2)

int test_scalar(int, int)



Tags:

return:  sum of $arg1 + $arg2
privilege:  PRIVILEGE_ALL
access:  public


Parameters:

int   $arg1   integer to add
int   $arg2   integer to add Similar to test_array, but returns the scalar sum of $arg1 + $arg2

[ Top ]


Documentation generated on Sat, 05 Jul 2008 04:00:35 -0400 by phpDocumentor 1.4.0