Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages | Examples

tx_commerce_element_alib Class Reference

Inheritance diagram for tx_commerce_element_alib:

tx_commerce_article tx_commerce_article_price tx_commerce_attribute tx_commerce_attribute_value tx_commerce_category tx_commerce_product List of all members.

Public Member Functions

 get_lang ()
 getL18nParent ()
 load_data ()
 add_field_to_fieldlist ($fieldname)
 add_fields_to_fieldlist ($fieldarray)
 getUid ()
 return_assoc_array ($prefix='')
 returnAssocArray ($prefix='')
 getMarkerArray (&$cobj, $conf, $prefix='')
 isValidUid ()
 is_valid_uid ()
 isAccessible ()
 setPageTitle ($field='title')
 get_attributes ($attribute_corelation_type_list='')
 setField ($field, $value)
 getField ($field)
 get_uid ()

Public Attributes

 $uid
 $lang_uid
 $l18n_parent
 $database_class = ''
 $fieldlist = array('title','lang_uid','l18n_parent')
 $correlation_types = array(ATTRIB_selector,ATTRIB_shal,ATTRIB_can,ATTRIB_product )
 $default_add_where = ' AND hidden = 0 AND deleted = 0'
 $attributes_uids = array()
 $attribute = array()
 $conn_db = ''
 $translationMode = 'hideNonTranslated'
 $recordTranslated = false

Detailed Description

Since:
21.09.05 new add field_to_fieldlist new add fields_to_fieldlist


Member Function Documentation

tx_commerce_element_alib::add_field_to_fieldlist fieldname  ) 
 

Addes a field to Class fieldlist used for hook to add own fields to output

Parameters:
$fieldname Databas fieldname
Todo:
Add Check if field exists in Database

tx_commerce_element_alib::add_fields_to_fieldlist fieldarray  ) 
 

Addes a fields to Class fieldlist used for hook to add own fields to output Basically calls $this->add_fiel_to_fieldlist for each element

Parameters:
$fieldlistr arary of databse filednames
Todo:
Add Check if field exists in Database

tx_commerce_element_alib::get_attributes attribute_corelation_type_list = ''  ) 
 

returns the possible attributes

Parameters:
array of attribut_correlation_types
Returns:
array

tx_commerce_element_alib::get_lang  ) 
 

Returns:
return language id public

tx_commerce_element_alib::get_uid  ) 
 

Returns:
return uid, use e.g. with pi-link-functions
Deprecated:
public

tx_commerce_element_alib::getField field  ) 
 

get a given field value, only to use with custom field without own method

Warning: commerce provides getMethods for all default fields. For Compatibility reasons always use the built in Methods. Only use this method with you own added fields

See also:
add_fields_to_fieldlist

add_field_to_fieldlist

Parameters:
string $field: fieldname
Returns:
mixed value of the field

tx_commerce_element_alib::getL18nParent  ) 
 

Returns:
return l18n_partent uid public

tx_commerce_element_alib::getMarkerArray &$  cobj,
conf,
prefix = ''
 

Since:
2005 11 08 depricated, use tx_commerce_pibase->renderrow in combinintion with $this->return_assoc_array
Renders values from fieldlist to markers

Parameters:
&$cobj refference to cobj class
$conf configuration for this viewmode to render cObj
prefix optinonal prefix for marker
Author:
Volker Graubaum <vg@e-netconsulting.de>
Returns:
html-code
Todo:
fill in code

tx_commerce_element_alib::getUid  ) 
 

Returns:
return uid, use e.g. with pi-link-functions public

tx_commerce_element_alib::is_valid_uid  ) 
 

Checks if the UID is valid and availiable in the database

Returns:
boolen true if uid is valid
Todo:
revise access-check
Deprecated:

tx_commerce_element_alib::isAccessible  ) 
 

Checks in the Database if object is basically checks against the enableFields

See also:
: class.tx_commerce_db_alib.php ->isAccessible(
Returns:
true if is accessible false if is not accessible
Author:
Ingo Schmitt <is@marketing-factory.de>

tx_commerce_element_alib::isValidUid  ) 
 

Checks if the UID is valid and availiable in the database

Returns:
boolen true if uid is valid
Todo:
revise access-check

tx_commerce_element_alib::load_data  ) 
 

Loads the Data from the database via the named database class $database_class

Reimplemented in tx_commerce_article, tx_commerce_category, and tx_commerce_product.

tx_commerce_element_alib::return_assoc_array prefix = ''  ) 
 

Deprecated:
version - 08.11.2005 Returns the data of this object als array
Parameters:
prefix Prefix for the keys or returnung array optional
Returns:
array Assoc Arry of data public
Since:
2005 11 08 depricated

tx_commerce_element_alib::returnAssocArray prefix = ''  ) 
 

Returns the data of this object als array

Parameters:
prefix Prefix for the keys or returnung array optional
Returns:
array Assoc Arry of data public
Since:
2005 11 08

Reimplemented in tx_commerce_article.

tx_commerce_element_alib::setField field,
value
 

set a given field, only to use with custom field without own method

Warning: commerce provides getMethods for all default fields. For Compatibility reasons always use the built in Methods. Only use this method with you own added fields

See also:
add_fields_to_fieldlist

add_field_to_fieldlist

Parameters:
string $field: fieldname
mixed $value: value
Returns:
void

tx_commerce_element_alib::setPageTitle field = 'title'  ) 
 

Sets the PageTitle titile from via the TSFE

Parameters:
field (default title) for setting as title
Author:
Volker Graubaum <vg@e-netconsulting.de>


Member Data Documentation

tx_commerce_element_alib::$attribute = array()
 

tx_commerce_element_alib::$attributes_uids = array()
 

Reimplemented in tx_commerce_product.

tx_commerce_element_alib::$conn_db = ''
 

tx_commerce_element_alib::$correlation_types = array(ATTRIB_selector,ATTRIB_shal,ATTRIB_can,ATTRIB_product )
 

tx_commerce_element_alib::$database_class = ''
 

tx_commerce_element_alib::$default_add_where = ' AND hidden = 0 AND deleted = 0'
 

tx_commerce_element_alib::$fieldlist = array('title','lang_uid','l18n_parent')
 

tx_commerce_element_alib::$l18n_parent
 

tx_commerce_element_alib::$lang_uid
 

tx_commerce_element_alib::$recordTranslated = false
 

Returns:
boolean if a record is translaed private

tx_commerce_element_alib::$translationMode = 'hideNonTranslated'
 

Translation Mode for getRecordOverlay

See also:
class.t3lib_page.php private

tx_commerce_element_alib::$uid
 


The documentation for this class was generated from the following file:
Generated on Sun Jan 13 23:12:20 2008 for tx_commerce by  doxygen 1.4.4