Documentation TYPO3 par Ameos |
Public Member Functions | |
tslib_pibase () | |
pi_setPiVarDefaults () | |
pi_getPageLink ($id, $target='', $urlParameters=array()) | |
pi_linkToPage ($str, $id, $target='', $urlParameters=array()) | |
pi_linkTP ($str, $urlParameters=array(), $cache=0, $altPageId=0) | |
pi_linkTP_keepPIvars ($str, $overrulePIvars=array(), $cache=0, $clearAnyway=0, $altPageId=0) | |
pi_linkTP_keepPIvars_url ($overrulePIvars=array(), $cache=0, $clearAnyway=0, $altPageId=0) | |
pi_list_linkSingle ($str, $uid, $cache=FALSE, $mergeArr=array(), $urlOnly=FALSE, $altPageId=0) | |
pi_openAtagHrefInJSwindow ($str, $winName='', $winParams='width=670, height=500, status=0, menubar=0, scrollbars=1, resizable=1') | |
pi_list_browseresults ($showResultCount=1, $tableParams='', $wrapArr=array(), $pointerName= 'pointer', $hscText=TRUE) | |
pi_list_searchBox ($tableParams='') | |
pi_list_modeSelector ($items=array(), $tableParams='') | |
pi_list_makelist ($res, $tableParams='') | |
pi_list_row ($c) | |
pi_list_header () | |
pi_getClassName ($class) | |
pi_classParam ($class) | |
pi_wrapInBaseClass ($str) | |
pi_getEditPanel ($row='', $tablename='', $label='', $conf=Array()) | |
pi_getEditIcon ($content, $fields, $title='', $row='', $tablename='', $oConf=array()) | |
pi_getLL ($key, $alt='', $hsc=FALSE) | |
pi_loadLL () | |
pi_list_query ($table, $count=0, $addWhere='', $mm_cat='', $groupBy='', $orderBy='', $query='', $returnQueryArray=FALSE) | |
pi_exec_query ($table, $count=0, $addWhere='', $mm_cat='', $groupBy='', $orderBy='', $query='') | |
pi_getRecord ($table, $uid, $checkPage=0) | |
pi_getPidList ($pid_list, $recursive=0) | |
pi_prependFieldsWithTable ($table, $fieldList) | |
pi_getCategoryTableContents ($table, $pid, $whereClause='', $groupBy='', $orderBy='', $limit='') | |
pi_isOnlyFields ($fList, $lowerThan=-1) | |
pi_autoCache ($inArray) | |
pi_RTEcssText ($str) | |
pi_initPIflexForm ($field='pi_flexform') | |
pi_getFFvalue ($T3FlexForm_array, $fieldName, $sheet='sDEF', $lang='lDEF', $value='vDEF') | |
pi_getFFvalueFromSheetArray ($sheetArray, $fieldNameArr, $value) | |
Public Attributes | |
$cObj | |
$prefixId | |
$scriptRelPath | |
$extKey | |
$piVars | |
$internal | |
$LOCAL_LANG = Array() | |
$LOCAL_LANG_charset = Array() | |
$LOCAL_LANG_loaded = 0 | |
$LLkey = 'default' | |
$altLLkey = '' | |
$LLtestPrefix = '' | |
$LLtestPrefixAlt = '' | |
$pi_isOnlyFields = 'mode,pointer' | |
$pi_alwaysPrev = 0 | |
$pi_lowerThan = 5 | |
$pi_moreParams = '' | |
$pi_listFields = '*' | |
$pi_autoCacheFields = array() | |
$pi_autoCacheEn = 0 | |
$pi_USER_INT_obj = FALSE | |
$pi_checkCHash = FALSE | |
$conf = Array() | |
$pi_EPtemp_cObj | |
$pi_tmpPageId = 0 |
Definition at line 132 of file class.tslib_pibase.php.
|
Class Constructor (true constructor) Initializes $this->piVars if $this->prefixId is set to any value Will also set $this->LLkey based on the config.language setting.
Definition at line 214 of file class.tslib_pibase.php. References t3lib_div::GParrayMerged(). Referenced by tx_rtehtmlarea_pi1::main(). |
|
Returns true if the array $inArray contains only values allowed to be cached based on the configuration in $this->pi_autoCacheFields Used by ->pi_linkTP_keepPIvars This is an advanced form of evaluation of whether a URL should be cached or not.
Definition at line 1275 of file class.tslib_pibase.php. Referenced by pi_linkTP_keepPIvars(). |
|
Returns the class-attribute with the correctly prefixed classname Using pi_getClassName()
Definition at line 777 of file class.tslib_pibase.php. |
|
Executes a standard SELECT query for listing of records based on standard input vars from the 'browser' ($this->internal['results_at_a_time'] and $this->piVars['pointer']) and 'searchbox' ($this->piVars['sword'] and $this->internal['searchFieldList']) Set $count to 1 if you wish to get a count(*) query for selecting the number of results. Notice that the query will use $this->conf['pidList'] and $this->conf['recursive'] to generate a PID list within which to search for records.
Definition at line 1140 of file class.tslib_pibase.php. |
|
Will select all records from the "category table", $table, and return them in an array.
Definition at line 1211 of file class.tslib_pibase.php. |
|
Returns a class-name prefixed with $this->prefixId and with all underscores substituted to dashes (-)
Definition at line 765 of file class.tslib_pibase.php. |
|
Adds edit-icons to the input content. tslib_cObj::editIcons used for rendering
Definition at line 900 of file class.tslib_pibase.php. References t3lib_div::getIndpEnv(). |
|
Returns the Backend User edit panel for the $row from $tablename
Definition at line 858 of file class.tslib_pibase.php. References t3lib_div::makeInstance(). |
|
Return value from somewhere inside a FlexForm structure
Definition at line 1346 of file class.tslib_pibase.php. Referenced by tx_cssstyledcontent_pi1::render_table(). |
|
Returns part of $sheetArray pointed to by the keys in $fieldNameArray
Definition at line 1363 of file class.tslib_pibase.php. References t3lib_div::testInt(). |
|
Returns the localized label of the LOCAL_LANG key, $key Notice that for debugging purposes prefixes for the output values can be set with the internal vars ->LLtestPrefixAlt and ->LLtestPrefix
Definition at line 947 of file class.tslib_pibase.php. Referenced by tx_indexedsearch::compileResult(), tx_indexedsearch::doSearch(), tx_indexedsearch::getDisplayResults(), tx_indexedsearch::initialize(), and pi_list_browseresults(). |
|
Get URL to some page. Returns the URL to page $id with $target and an array of additional url-parameters, $urlParameters Simple example: $this->pi_getPageLink(123) to get the URL for page-id 123. The function basically calls $this->cObj->getTypoLink_URL()
Definition at line 277 of file class.tslib_pibase.php. |
|
Returns a commalist of page ids for a query (eg. 'WHERE pid IN (...)')
Definition at line 1166 of file class.tslib_pibase.php. References t3lib_div::intInRange(), and t3lib_div::trimExplode(). |
|
Returns the row $uid from $table (Simply calling $GLOBALS['TSFE']->sys_page->checkRecord())
Definition at line 1155 of file class.tslib_pibase.php. |
|
Converts $this->cObj->data['pi_flexform'] from XML string to flexForm array.
Definition at line 1328 of file class.tslib_pibase.php. References t3lib_div::xml2array(). Referenced by tx_cssstyledcontent_pi1::render_table(). |
|
Returns true if the piVars array has ONLY those fields entered that is set in the $fList (commalist) AND if none of those fields value is greater than $lowerThan field if they are integers. Notice that this function will only work as long as values are integers.
Definition at line 1255 of file class.tslib_pibase.php. References t3lib_div::testInt(), and t3lib_div::trimExplode(). Referenced by pi_list_browseresults(). |
|
Link a string to some page. Like pi_getPageLink() but takes a string as first parameter which will in turn be wrapped with the URL including target attribute Simple example: $this->pi_linkToPage('My link', 123) to get something like My link (or My link if simulateStaticDocuments is set)
Definition at line 293 of file class.tslib_pibase.php. |
|
Link string to the current page. Returns the $str wrapped in -tags with a link to the CURRENT page, but with $urlParameters set as extra parameters for the page.
Definition at line 308 of file class.tslib_pibase.php. References $conf. Referenced by pi_linkTP_keepPIvars(), and pi_list_linkSingle(). |
|
Link a string to the current page while keeping currently set values in piVars. Like pi_linkTP, but $urlParameters is by default set to $this->piVars with $overrulePIvars overlaid. This means any current entries from this->piVars are passed on (except the key "DATA" which will be unset before!) and entries in $overrulePIvars will OVERRULE the current in the link.
Definition at line 331 of file class.tslib_pibase.php. References $piVars, t3lib_div::array_merge_recursive_overrule(), pi_autoCache(), and pi_linkTP(). Referenced by pi_linkTP_keepPIvars_url(), pi_list_browseresults(), and pi_list_linkSingle(). |
|
Get URL to the current page while keeping currently set values in piVars. Same as pi_linkTP_keepPIvars but returns only the URL from the link.
Definition at line 355 of file class.tslib_pibase.php. References pi_linkTP_keepPIvars(). |
|
Returns a results browser. This means a bar of page numbers plus a "previous" and "next" link. For each entry in the bar the piVars "pointer" will be pointing to the "result page" to show. Using $this->piVars['pointer'] as pointer to the page to display. Can be overwritten with another string ($pointerName) to make it possible to have more than one pagebrowser on a page) Using $this->internal['res_count'], $this->internal['results_at_a_time'] and $this->internal['maxPages'] for count number, how many results to show and the max number of pages to include in the browse bar. Using $this->internal['dontLinkActivePage'] as switch if the active (current) page should be displayed as pure text or as a link to itself Using $this->internal['showFirstLast'] as switch if the two links named "<< First" and "LAST >>" will be shown and point to the first or last page. Using $this->internal['pagefloat']: this defines were the current page is shown in the list of pages in the Pagebrowser. If this var is an integer it will be interpreted as position in the list of pages. If its value is the keyword "center" the current page will be shown in the middle of the pagelist. Using $this->internal['showRange']: this var switches the display of the pagelinks from pagenumbers to ranges f.e.: 1-5 6-10 11-15... instead of 1 2 3... Using $this->pi_isOnlyFields: this holds a comma-separated list of fieldnames which - if they are among the GETvars - will not disable caching for the page with pagebrowser. The third parameter is an array with several wraps for the parts of the pagebrowser. The following elements will be recognized: disabledLinkWrap, inactiveLinkWrap, activeLinkWrap, browseLinksWrap, showResultsWrap, showResultsNumbersWrap, browseBoxWrap. If $wrapArr['showResultsNumbersWrap'] is set, the formatting string is expected to hold template markers (##FROM###, ##TO###, ##OUT_OF###, ##FROM_TO###, ##CURRENT_PAGE###, ##TOTAL_PAGES###) otherwise the formatting sting is expected to hold sprintf-markers (s) for from, to, outof (in that sequence) otherwise wrapping is totally controlled/modified by this array
Definition at line 456 of file class.tslib_pibase.php. References $pi_isOnlyFields, t3lib_div::intInRange(), pi_getLL(), pi_isOnlyFields(), and pi_linkTP_keepPIvars(). |
|
Returns a list header row. (Dummy) Notice: This function should ALWAYS be defined in the extension class of the plugin since it is directly concerned with the specific layout of the listing for your plugins purpose.
Definition at line 734 of file class.tslib_pibase.php. |
|
Wraps the $str in a link to a single display of the record (using piVars[showUid]) Uses pi_linkTP for the linking
Definition at line 373 of file class.tslib_pibase.php. References pi_linkTP(), and pi_linkTP_keepPIvars(). |
|
Returns the list of items based on the input SQL result pointer For each result row the internal var, $this->internal['currentRow'], is set with the row returned. $this->pi_list_header() makes the header row for the list $this->pi_list_row() is used for rendering each row Notice that these two functions are typically ALWAYS defined in the extension class of the plugin since they are directly concerned with the specific layout for that plugins purpose.
Definition at line 687 of file class.tslib_pibase.php. |
|
Returns a mode selector; a little menu in a table normally put in the top of the page/list.
Definition at line 649 of file class.tslib_pibase.php. |
|
Makes a standard query for listing of records based on standard input vars from the 'browser' ($this->internal['results_at_a_time'] and $this->piVars['pointer']) and 'searchbox' ($this->piVars['sword'] and $this->internal['searchFieldList']) Set $count to 1 if you wish to get a count(*) query for selecting the number of results. Notice that the query will use $this->conf['pidList'] and $this->conf['recursive'] to generate a PID list within which to search for records.
Definition at line 1048 of file class.tslib_pibase.php. References t3lib_div::inList(), and t3lib_div::intInRange(). |
|
Returns a list row. Get data from $this->internal['currentRow']; (Dummy) Notice: This function should ALWAYS be defined in the extension class of the plugin since it is directly concerned with the specific layout of the listing for your plugins purpose.
Definition at line 722 of file class.tslib_pibase.php. |
|
Returns a Search box, sending search words to piVars "sword" and setting the "no_cache" parameter as well in the form. Submits the search request to the current REQUEST_URI
Definition at line 618 of file class.tslib_pibase.php. |
|
Loads local-language values by looking for a "locallang.php" file in the plugin class directory ($this->scriptRelPath) and if found includes it. Also locallang values set in the TypoScript property "_LOCAL_LANG" are merged onto the values found in the "locallang.php" file.
Definition at line 970 of file class.tslib_pibase.php. References t3lib_extMgm::extPath(), and t3lib_div::readLLfile(). Referenced by tx_rtehtmlarea_pi1::main(), and tx_indexedsearch::main(). |
|
Will change the href value from in the input string and turn it into an onclick event that will open a new window with the URL
Definition at line 401 of file class.tslib_pibase.php. References t3lib_div::get_tag_attributes(). |
|
Having a comma list of fields ($fieldList) this is prepended with the $table.'.' name
Definition at line 1191 of file class.tslib_pibase.php. References t3lib_div::trimExplode(). |
|
Will process the input string with the parseFunc function from tslib_cObj based on configuration set in "lib.parseFunc_RTE" in the current TypoScript template. This is useful for rendering of content in RTE fields where the transformation mode is set to "ts_css" or so. Notice that this requires the use of "css_styled_content" to work right.
Definition at line 1306 of file class.tslib_pibase.php. |
|
If internal TypoScript property "_DEFAULT_PI_VARS." is set then it will merge the current $this->piVars array onto these default values.
Definition at line 240 of file class.tslib_pibase.php. References t3lib_div::array_merge_recursive_overrule(). Referenced by tx_rtehtmlarea_pi1::main(), and tx_indexedsearch::main(). |
|
Wraps the input string in a tag with the class attribute set to the prefixId. All content returned from your plugins should be returned through this function so all content from your plugin is encapsulated in a -tag nicely identifying the content of your plugin.
Definition at line 802 of file class.tslib_pibase.php. Referenced by tx_indexedsearch::main(). |
|
Should normally be set in the main function with the TypoScript content passed to the method. $conf[LOCAL_LANG][_key_] is reserved for Local Language overrides. $conf[userFunc] / $conf[includeLibs] reserved for setting up the USER / USER_INT object. See TSref Reimplemented in tx_cssstyledcontent_pi1, and tx_rtehtmlarea_pi1. Definition at line 179 of file class.tslib_pibase.php. Referenced by tx_indexedsearch::main(), and pi_linkTP(). |
|
Initial value: Array( // Used internally for general storage of values between methods 'res_count' => 0, // Total query count 'results_at_a_time' => 20, // pi_list_browseresults(): Show number of results at a time 'maxPages' => 10, // pi_list_browseresults(): Max number of 'Page 1 - Page 2 - ...' in the list browser 'currentRow' => Array(), // Current result row 'currentTable' => '', // Current table ) Definition at line 145 of file class.tslib_pibase.php. |
|
Initial value: Array ( // This is the incoming array by name $this->prefixId merged between POST and GET, POST taking precedence. Eg. if the class name is 'tx_myext' then the content of this array will be whatever comes into &tx_myext[...]=... 'pointer' => '', // Used as a pointer for lists 'mode' => '', // List mode 'sword' => '', // Search word 'sort' => '', // [Sorting column]:[ASC=0/DESC=1] ) Definition at line 139 of file class.tslib_pibase.php. Referenced by pi_linkTP_keepPIvars(). |