module/fimodule.class.php

FormIt

Copyright 2009-2011 by Shaun McCormick shaun@modx.com

FormIt is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

FormIt is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with FormIt; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

package
formit

\fiModule

Abstract class for all FormIt modules

package
formit
subpackage
modules

Properties

Propertypublicarray  $config= 'array'

Default valuearrayDetails
Type
array
Propertypublic\FormIt  $formit= ''

Details
Type
\FormIt
Propertypublic\modX  $modx= ''

Details
Type
\modX

Methods

methodpublic  __construct( \FormIt $formit, array $config = array ) :
Parameters
Name Type Description
$formit \FormIt
$config array
methodpublic  getOption( string $key, mixed $default = null, string $method = !empty ) : null
Parameters
Name Type Description
$key string
$default mixed
$method string
Returns
Type Description
null
methodpublic  initialize( ) : void
abstractRuns after instantiation of the module
Details
abstract
methodpublic  output( ) : void
abstractReturns the output of the module
Details
abstract
methodprotected  setDefaultOptions( array $defaults = array ) : void
Set the default options for this module
Parameters
Name Type Description
$defaults array
methodpublic  setOption( string $key, mixed $value ) : void
Set an option for this module
Parameters
Name Type Description
$key string
$value mixed
methodpublic  setOptions( array $array ) : void
Set an array of options
Parameters
Name Type Description
$array array
Documentation was generated by DocBlox 0.13-DEV.