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

Class: ScDataSource

Source Location: /ScDataSource.php

Class Overview

ScGeneral
   |
   --ScDataSource

Smart Client Data Source Helper


Variables

Methods


Inherited Variables

Inherited Methods

Class: ScGeneral

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

Class Details

[line 21]
Smart Client Data Source Helper



[ Top ]


Class Variables

$_fields =

[line 27]



Tags:

access:  protected

Type:   Array


[ Top ]



Class Methods


method addField [line 43]

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 85]

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 116]

void clearFields( )

Clear fields

Clear Fields array




Tags:

access:  public


[ Top ]

method create [line 136]

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 104]

array getFields( )

Get Fields

Return the current fields array




Tags:

access:  public


[ Top ]


Documentation generated on Wed, 29 Jul 2009 22:37:14 -0300 by phpDocumentor 1.4.1