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

Class: SmartClient_Helper_ScDataSource

Source Location: /ScDataSource.php

Class Overview

Zend_View_Helper_Action
   |
   --SmartClient_Helper_ScGeneral
      |
      --SmartClient_Helper_ScDataSource

Smart Client Data Source Helper


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: SmartClient_Helper_ScGeneral

SmartClient_Helper_ScGeneral::__construct()
Set $remove_quotes_str
SmartClient_Helper_ScGeneral::addQuotesStr()
Add QuotesStr to String
SmartClient_Helper_ScGeneral::includeScripts()
Create the scripts for include
SmartClient_Helper_ScGeneral::removeQuotes()
Remove quotes from specific vars that are not supposed to be quoted using the $removeQuotesStr var
SmartClient_Helper_ScGeneral::ScGeneral()
Return instance
SmartClient_Helper_ScGeneral::setView()
Sets the view field

Class Details

[line 22]
Smart Client Data Source Helper



Tags:

uses:  viewHelper - SmartClient


[ Top ]


Class Variables

$view =

[line 28]



Tags:

access:  public

Type:   Zend_View_Interface
Overrides:   Array


[ Top ]

$_fields =

[line 33]



Tags:

access:  protected

Type:   Array


[ Top ]



Class Methods


method addField [line 70]

string addField( mixed $data, [string $title = ''], [boolean $primaryKey = false], [string $foreignKey = ''], [integer $rootValue = 0], [boolean $canEdit = true], [array $options = ''])

Add Field



Tags:

access:  public


Parameters:

mixed   $data   If string, it must be the id of the field. If array, them we will loop on it
string   $title   Title of the field
boolean   $primaryKey   True if this field is a primary key
string   $foreignKey   Name of the foreign key, if necessary
integer   $rootValue   Root value
boolean   $canEdit   True if this field is editable
array   $options   Additional options

[ Top ]

method addFields [line 112]

void addFields( array $data)

Add Fields

Get an array and do a loop using the addField function




Tags:

access:  public


Parameters:

array   $data   Array containing multiple fields

[ Top ]

method clearFields [line 143]

void clearFields( )

Clear fields

Clear Fields array




Tags:

access:  public


[ Top ]

method create [line 163]

string create( mixed $data, [string $fetchURL = ''], [string $addURL = ''], [string $updateURL = ''], [string $removeURL = ''], [string $dataFormat = 'json'], [array $options = ''])

Create

Create a data source




Tags:

access:  public


Parameters:

mixed   $data   If string, it must be the id of the data source. If array, them we will loop on it
string   $dataFormat   Data format
string   $fetchURL  
string   $addURL  
string   $updateURL  
string   $removeURL  
array   $options   Additional options

[ Top ]

method getFields [line 131]

array getFields( )

Get Fields

Return the current fields array




Tags:

access:  public


[ Top ]

method ScDataSource [line 40]

void ScDataSource( )

Return instance



Tags:

access:  public


[ Top ]

method setView [line 51]

void setView( $view)

Sets the view field



Tags:

access:  public


Overrides SmartClient_Helper_ScGeneral::setView() (Sets the view field)

Parameters:

$view   $view   Zend_View_Interface

[ Top ]


Documentation generated on Mon, 20 Jul 2009 16:51:56 -0300 by phpDocumentor 1.4.1