phpDocumentor pivotx
[ class tree: pivotx ] [ index: pivotx ] [ all elements ]

Class: oops_content

Source Location: /modules/module_oops.php

Class oops_content

Descendants
Child Class Description
oops_entry standard class for entries
oops_page standard class for pages

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From oops_record

oops_record::$loaded
oops_record::$primarykey_fieldname
oops_record::$tablename
oops_record::$type

Inherited From oops_record

oops_record::__construct()
Construct a record
oops_record::cache()
Cache this instance using it's own id
oops_record::call_all()
Call every class-method with a specific name
oops_record::call_best()
Call the 'best' (latest,highest in the class hierarchy) method
oops_record::delete()
Delete the current record
oops_record::getLanguageField()
Built-in language field logica
oops_record::get_columns()
Get the column information from the table
oops_record::get_database()
Get a database resource
oops_record::get_id()
Get ID of the record
oops_record::get_jsonp()
Get the contents of the object in JSON format
oops_record::get_no_of_records()
Return the number of records
oops_record::get_object_vars()
oops_record::get_primarykey_fieldname()
Get the name of the primarykey fieldname
oops_record::have_best()
Have a 'best' call?
oops_record::load()
Load record by primary key
oops_record::loadall()
Load records by a specific field and value
oops_record::loadallby()
Load records by a specific field and value
oops_record::loadby()
Load record by a specific field and value
oops_record::loaded()
Returns true if the record has been loaded from a source
oops_record::mark_as_loaded()
oops_record::register()
register this class to the registry
oops_record::save()
Save the current record
oops_record::search()
oops_record::set_jsonp()
Put the contents of the object from a JSON feed
oops_record::share_instance()
Internal call for sharing data between records
oops_record::smarty_load()
Smarty standard load
oops_record::smarty_loadall()
Smarty standard load all
oops_record::smarty_search()
Implements searching
oops_record::type()
Get record type
oops_record::weigh()
A dummy weigh function
oops_record::_smarty_loadall_params()
Default smarty loadall params parsing
oops_record::__call()
Make method calls to other classes which also descend from the base class
oops_record::__delete()
Delete the current record
oops_record::__get()
Internal getter
oops_record::__isset()
Internal issetter
oops_record::__load()
Load records as objects via a select sql array
oops_record::__load_array()
Load records as arrays via an select sql array or sql string
oops_record::__save()
Save an associative array to the database
oops_record::__search_records()
Perform a search on the table and weigh/sort the results
oops_record::__set()
Internal setter
oops_record::__transfer_get()
Get the value of a field, but do no conversions on it
oops_record::__transfer_set()
Set the value of a field, but do no conversions on it
oops_record::__unset()
Internal unsetter

[ Top ]
Property Summary
static mixed   $common_fields  
mixed   $categories  
mixed   $contenttype  
mixed   $data  
mixed   $shadow_language  
mixed   $shadow_version  
mixed   $tableextrafields  

[ Top ]
Method Summary
static void   init_common_fields()   Internal function to set the common fields (not the extrafields)
static array   merge_related_with_data()   Merge related relevancy order with the retrieved contents
static void   order_related()   (Post) Order related contents
oops_content   __construct()  
array   get_related()   Get related content based on a specific other content
void   hasLanguage()  
void   intro_and_body()   Concanate introduction and body
void   load_tags()  
void   load_taxonomy()  
void   save()   Save the current record
void   set_uri()   Make sure the uri is always unique
void   smarty_upgrade()   Upgrade a variable to a smarty object
void   weigh()  
void   _rewrite_group_by()   Rewrite group by to be inserted into an SQL statement and flag if extrafields are used
void   _rewrite_order_by()   Rewrite order by to be inserted into an SQL statement and flag if extrafields are used
void   _rewrite_where()   Rewrite where to be inserted into an SQL statement and flag if extrafields are used
void   _smarty_loadall_params()   Overridden smarty loadall params parsing
void   __get()   Handle delayed loading of certain aspects
void   __load_array()   Load records via a select sql array
void   __search_records()   Perform a search on the table and weigh/sort the results
void   __set()   Handle URI's in a special way

[ Top ]
Properties
static mixed   $common_fields = false [line 4671]
API Tags:
Access:  protected


[ Top ]
mixed   $categories = array() [line 4679]
API Tags:
Access:  public


[ Top ]
mixed   $contenttype = false [line 4673]
API Tags:
Access:  protected


[ Top ]
mixed   $data [line 4670]
API Tags:
Access:  protected


Redefinition of:
oops_record::$data

[ Top ]
mixed   $shadow_language = false [line 4677]
API Tags:
Access:  protected


[ Top ]
mixed   $shadow_version = false [line 4676]
API Tags:
Access:  protected


[ Top ]
mixed   $tableextrafields = false [line 4674]
API Tags:
Access:  protected


[ Top ]
Methods
static method init_common_fields  [line 4705]

  static void init_common_fields( )

Internal function to set the common fields (not the extrafields)


API Tags:
Access:  public


[ Top ]
static method merge_related_with_data  [line 5535]

  static array merge_related_with_data( array $related, array $contents, integer $limit  )

Merge related relevancy order with the retrieved contents

Parameters:
array   $related:  key=uid, value=score preferred content order
array   $contents:  contents to merge
integer   $limit:  limit the amount of content to return

API Tags:
Return:  merged contents
Access:  public


[ Top ]
static method order_related  [line 5436]

  static void order_related( $data, $params  )

(Post) Order related contents

Parameters:
   $data: 
   $params: 

API Tags:
Access:  public


[ Top ]
Constructor __construct  [line 4681]

  oops_content __construct( [ $type = false], [ $plural_type = false]  )

Parameters:
   $type: 
   $plural_type: 

API Tags:
Access:  public


Redefinition of:
oops_record::__construct()
Construct a record

Redefined in descendants as:

[ Top ]
get_related  [line 5489]

  array get_related( integer $uid, [integer $limit = 10], [integer $related_limit_hint = -1]  )

Get related content based on a specific other content

Parameters:
integer   $uid:  uid to relate to
integer   $limit:  number of related contents to return
integer   $related_limit_hint:  number of related content to retrieve to end with the correct amount

API Tags:
Return:  key=uid, value=score related content uid/score
Access:  public


[ Top ]
hasLanguage  [line 5583]

  void hasLanguage( [ $language = false]  )

Parameters:
   $language: 

API Tags:
Access:  public


[ Top ]
intro_and_body  [line 5449]

  void intro_and_body( )

Concanate introduction and body

Example:

  1. [[$entry->intro_and_body]]


API Tags:
Access:  public


[ Top ]
load_tags  [line 4903]

  void load_tags( )


API Tags:
Access:  protected


[ Top ]
load_taxonomy  [line 5556]

  void load_taxonomy( $taxonomy  )

Parameters:
   $taxonomy: 

API Tags:
Access:  public


[ Top ]
save  [line 5199]

  void save( )

Save the current record


API Tags:
Access:  public


Redefinition of:
oops_record::save()
Save the current record

[ Top ]
set_uri  [line 4925]

  void set_uri( $uri  )

Make sure the uri is always unique

Parameters:
   $uri: 

API Tags:
Access:  public


[ Top ]
smarty_upgrade  [line 5460]

  void smarty_upgrade( $params, &$smarty  )

Upgrade a variable to a smarty object

<dl> <dt>value</dt><dd>value to upgrade to smarty variable</dd> </dl>

Parameters:
   $params: 
   &$smarty: 

API Tags:
Access:  public


[ Top ]
weigh  [line 5298]

  void weigh( $params  )

Parameters:
   $params: 

API Tags:
Access:  public


Redefinition of:
oops_record::weigh()
A dummy weigh function

[ Top ]
_rewrite_group_by  [line 4784]

  void _rewrite_group_by( $value  )

Rewrite group by to be inserted into an SQL statement and flag if extrafields are used

Parameters:
   $value: 

API Tags:
Access:  protected


[ Top ]
_rewrite_order_by  [line 4730]

  void _rewrite_order_by( $value  )

Rewrite order by to be inserted into an SQL statement and flag if extrafields are used

Parameters:
   $value: 

API Tags:
Access:  protected


[ Top ]
_rewrite_where  [line 4828]

  void _rewrite_where( $value  )

Rewrite where to be inserted into an SQL statement and flag if extrafields are used

Parameters:
   $value: 

API Tags:
Access:  protected


[ Top ]
_smarty_loadall_params  [line 5332]

  void _smarty_loadall_params( $_params, [ $args = array()]  )

Overridden smarty loadall params parsing

Parameters:
   $_params: 
   $args: 

API Tags:
Access:  protected


Redefinition of:
oops_record::_smarty_loadall_params()
Default smarty loadall params parsing

Redefined in descendants as:

[ Top ]
__get  [line 4895]

  void __get( $name  )

Handle delayed loading of certain aspects

Parameters:
   $name: 

API Tags:
Access:  public


Redefinition of:
oops_record::__get()
Internal getter

[ Top ]
__load_array  [line 4957]

  void __load_array( $select_sql, &$data  )

Load records via a select sql array

Parameters:
   $select_sql: 
   &$data: 

API Tags:
Access:  protected


Redefinition of:
oops_record::__load_array()
Load records as arrays via an select sql array or sql string

[ Top ]
__search_records  [line 5271]

  void __search_records( $q, [ $params = array()]  )

Perform a search on the table and weigh/sort the results

Parameters:
   $q: 
   $params: 

API Tags:
Access:  public


Redefinition of:
oops_record::__search_records()
Perform a search on the table and weigh/sort the results

Redefined in descendants as:

[ Top ]
__set  [line 4877]

  void __set( $name, $value  )

Handle URI's in a special way

Parameters:
   $name: 
   $value: 

API Tags:
Access:  public


Redefinition of:
oops_record::__set()
Internal setter

[ Top ]

Documentation generated on Thu, 17 May 2012 01:07:19 +0200 by phpDocumentor 1.4.3