Docs for page atktools.inc
Atk API home Class tree Element index

Todo list

Packages: » atk Classes: general » AllTests » atkConfig » atkController » atkDataNode » atkErrorHandlerBase » atkFileEditor » atkLanguage » atkMailErrorHandler » atkMetaNode » atkMockNode » atkNode » atkNodeValidator » atkOneToManyRelationSessionGridHandler » atkPHPView » atkSessionStore » atkStatementIterator » atkTreeNode » atkWizardBase » atkZendPlatformErrorHandler » clsTbsDataSource » clsTbsLocator » clsTinyButStrong » clsTinyButStrongOOo » FCKeditor » getSupportedLanguagesCollector » layout » node » sql_whereclause_blacklist_checker » test » tree utils » atkAbstractFrame » atkActionListener » atkClassFinder » atkClassLoader » atkCompatSelector » atkDataHolder » atkDebugger » atkDirectoryTraverser » atkEventLog » atkFileUtils » atkFrame » atkFrameSet » atkIpUtils » atkJSON » atkMail » atkMailer » atkMessageQueue » atkMLSelector » atkmlsplitter » atkRootFrameset » atkSelector » atkSelectorIterator » atkString » atkStringParser » atkTableRenderer » atkTableRendererGrouped » atkTextMarker » atkTmpFile » atkTriggerListener » atkYAML » atkZip » browserInfo fixture » atkAbstractFixtureLoader » atkFixtureManager » atkPHPFixtureLoader » atkYAMLFixtureLoader testcases » atkAbstractSearchHandler ui » atkActionBoxBuilder » atkDialog » atkIndexPage » atkOutput » atkPage » atkPageBuilder » atkTheme » atkThemeCompiler » atkUI handlers » atkActionHandler » atkAddHandler » atkAddOrCopyHandler » atkAdminHandler » atkAttributeEditHandler » atkCopyHandler » atkDeleteHandler » atkDocumentHandler » atkEditCopyHandler » atkEditHandler » atkExportHandler » atkFeedbackHandler » atkFileExport » atkImportHandler » atkMultiSelectHandler » atkMultiUpdatehandler » atkSaveHandler » atkSearchHandler » atkSelectHandler » atkSmartSearchHandler » atkUpdatehandler » atkViewEditBase » atkViewHandler » atkXmlHandler attributes » atkAggregatedColumn » atkAttribute » atkBoolAttribute » atkCalculatorAttribute » atkCaptchaAttribute » atkColorPickerAttribute » atkCountryAttribute » atkCreatedByAttribute » atkCreateStampAttribute » atkCurrencyAttribute » atkDateAttribute » atkDateTimeAttribute » atkDocumentAttribute » atkDummyAttribute » atkDurationAttribute » atkEmailAttribute » atkExpressionAttribute » atkFckAttribute » atkFieldSet » atkFileAttribute » atkFileWriterAttribute » atkFlagAttribute » atkFormatAttribute » atkFuzzySearchAttribute » atkHiddenAttribute » atkHtmlAttribute » atkIpAttribute » atkListAttribute » atkLiveTextPreview » atkMlAttribute » atkMlFckAttribute » atkMlHtmlAttribute » atkMlNumberAttribute » atkMlSelectorAttribute » atkMlTextAttribute » atkMlWrapper » atkMultipleFileAttribute » atkMultiSelectAttribute » atkNumberAttribute » atkParserAttribute » atkPasswordAttribute » atkProfileAttribute » atkRadioAttribute » atkRadioDetailsAttribute » atkRowCounter » atkStateAttribute » atkTabbedPane » atkTagAttribute » atkTextAttribute » atkTimeAttribute » atkTimeZoneAttribute » atkToolbar » atkUpdatedByAttribute » atkUpdateStampAttribute » atkUrlAttribute » atkWeekdayAttribute » atkWysiwygAttribute datatypes » atkArrayDt » atkDataType » atkStringDt » atkTime subpackage » atkAttributeTestCase security » atkBajusEncryption » atkBase64Encryption » atkEncryption » atkMockSecurityManager » atkOpenSSLEncryption » atkSecurityListener » atkSecurityManager » atkUrlVault » auth_config » auth_db » auth_imap » auth_interface » auth_ldap » auth_none » auth_pop3 » auth_saml » auth_server » auth_sspi cache » atkCache » atkCache_apc » atkCache_eaccelerator » atkCache_file » atkCache_memcache » atkCache_var » atkCache_xcache » atkCache_zp_disk » atkCache_zp_output » atkCache_zp_shm test » atkCacheTestCase » atkPluginTestCase » atkTestCase » test_sql_whereclause_blacklist_checker db » atkClusterDb » atkClusterDDL » atkClusterQuery » atkDb » atkdb2db » atkDb2DDL » atkDb2Query » atkDDL » atki5db » atki5DDL » atki5query » atkMockDb » atkMockDDL » atkMockQuery » atkMsSqlDb » atkMsSqlDDL » atkMssqlQuery » atkMysqlDb » atkMysqlDDL » atkMysqliDb » atkMysqliDDL » atkMysqliQuery » atkMysqlQuery » atkOci8Db » atkOci8DDL » atkOci8Query » atkOci9Db » atkOci9DDL » atkOci9Query » atkOci805Db » atkOci805Query » atkPgsqlDb » atkPgsqlDDL » atkPgsqlQuery » atkQuery recordlist » atkColumnConfig » atkCSVRecordList » atkCustomRecordList » atkExcelCSVRecordList » atkHTMLRecordList » atkPrintableRecordList » atkRecordList » atkRecordlistCache » atkTotalizer db-statement » atkCompatStatement » atkMySQLiStatement » atkStatement » atkStatementException » atkStatementParser console » atkConsoleController menu » atkcookmenu » atkDhtmlMenu » atkDropdownMenu » atkFramesMenu » atkMenu » atkmenuinterface » atkModernMenu » atkOutlookMenu » atkPlainMenu datagrid » atkDataGrid » atkDGComponent » atkDGEditControl » atkDGEvent » atkDGIndex » atkDGLimit » atkDGList » atkDGNoRecordsFound » atkDGPaginator » atkDGRenderer » atkDGSummary lock » atkDbLock » atkLock filters » atkDistinctFilter » atkFilter » atkGroupByFilter document » atkDocumentWriter » atkDocxWriter » atkOpenDocumentWriter meta » atkDutchMetaGrammar » atkMetaAttributeModifier » atkMetaCompiler » atkMetaGrammar » atkMetaPolicy » mod_meta relations » atkExtendableShuttleRelation » atkManyBoolRelation » atkManyToManyListRelation » atkManyToManyRelation » atkManyToManySelectRelation » atkManyToOneRelation » atkManyToOneTreeRelation » atkMatrixRelation » atkOneToManyRelation » atkOneToOneRelation » atkPolymorphicOneToOneRelation » atkRelation » atkSecureRelation » atkShuttleControl » atkShuttleFilter » atkShuttleRelation front » atkFrontController » atkFrontControllerBridge keyboard » atkKeyboard meta-relations » atkMetaExtendableShuttleRelation » atkMetaManyBoolRelation » atkMetaManyToManyListRelation » atkMetaManyToManySelectRelation » atkMetaManyToOneRelation » atkMetaOneToManyRelation » atkMetaOneToOneRelation » atkMetaShuttleRelation session » atkMockSessionManager » atkSessionManager » atkState modules » atkModule » mod_test listeners » atkRecycleBin interface » atkServer » atkSoapServer wizard » atkWizard » AtkWizardActionLoader » atkWizardPanel
Interfaces: datagrid » atkDGListener interface » atkServerInterface
Files: general » adodb-time.inc.php » AllTests.php » atknodetools.inc » atktools.inc » atktreetools.inc » basexml.php » bootstrap.inc » bootstrap.php » class.atkconfig.inc » class.atkcontroller.inc » class.atkdatanode.inc » class.atkerrorhandlerbase.inc » class.atkfileeditor.inc » class.atki5db.inc » class.atki5ddl.inc » class.atki5query.inc » class.atklanguage.inc » class.atkmailerrorhandler.inc » class.atkmetanode.inc » class.atkmocknode.inc » class.atkmocksessionmanager.inc » class.atknode.inc » class.atknodevalidator.inc » class.atkonetomanyrelationsessiongridhandler.inc » class.atkphpview.inc » class.atkpolymorphiconetoonerelation.inc » class.atksessionstore.inc » class.atkstatementiterator.inc » class.atktreenode.inc » class.atkwizardbase.inc » class.atkzendplatformerrorhandler.inc » class.layout.inc » class.nodename.inc » class.sql_whereclause_blacklist_checker.inc » class.test.inc » class.test_sql_whereclause_blacklist_checker.inc » commands.php » config.modules.inc » config.php » connector.php » console.php » db2yaml.php » defaultconfig.inc.php » fckeditor.php » fckeditor_php4.php » fckeditor_php5.php » io.php » module.inc » phpcompat.php » server.php » spellchecker.php » table2yaml.php » tbsooo_class.php » tbs_class.php » tooltip.tpl.php » upload.php » util.php » version.inc attributes » class.atkaggregatedcolumn.inc » class.atkattribute.inc » class.atkboolattribute.inc » class.atkcalculatorattribute.inc » class.atkcaptchaattribute.inc » class.atkcolorpickerattribute.inc » class.atkcountryattribute.inc » class.atkcreatedbyattribute.inc » class.atkcreatestampattribute.inc » class.atkcurrencyattribute.inc » class.atkdateattribute.inc » class.atkdatetimeattribute.inc » class.atkdocumentattribute.inc » class.atkdummyattribute.inc » class.atkdurationattribute.inc » class.atkemailattribute.inc » class.atkexpressionattribute.inc » class.atkfckattribute.inc » class.atkfieldset.inc » class.atkfileattribute.inc » class.atkfilewriterattribute.inc » class.atkflagattribute.inc » class.atkformatattribute.inc » class.atkfuzzysearchattribute.inc » class.atkhiddenattribute.inc » class.atkhtmlattribute.inc » class.atkipattribute.inc » class.atklistattribute.inc » class.atklivetextpreview.inc » class.atkmlattribute.inc » class.atkmlfckattribute.inc » class.atkmlhtmlattribute.inc » class.atkmlnumberattribute.inc » class.atkmlselectorattribute.inc » class.atkmltextattribute.inc » class.atkmlwrapper.inc » class.atkmultiplefileattribute.inc » class.atkmultiselectattribute.inc » class.atknumberattribute.inc » class.atkparserattribute.inc » class.atkpasswordattribute.inc » class.atkprofileattribute.inc » class.atkradioattribute.inc » class.atkradiodetailsattribute.inc » class.atkrowcounter.inc » class.atkstateattribute.inc » class.atktabbedpane.inc » class.atktagattribute.inc » class.atktextattribute.inc » class.atktimeattribute.inc » class.atktimezoneattribute.inc » class.atktoolbar.inc » class.atkupdatedbyattribute.inc » class.atkupdatestampattribute.inc » class.atkurlattribute.inc » class.atkweekdayattribute.inc » class.atkwysiwygattribute.inc attributes-- » property_accessor.php cache » class.atkcache.inc » class.atkcache_apc.inc » class.atkcache_eaccelerator.inc » class.atkcache_file.inc » class.atkcache_memcache.inc » class.atkcache_var.inc » class.atkcache_xcache.inc » class.atkcache_zp_disk.inc » class.atkcache_zp_output.inc » class.atkcache_zp_shm.inc console » class.atkconsolecontroller.inc datagrid » class.atkdatagrid.inc » class.atkdgcomponent.inc » class.atkdgeditcontrol.inc » class.atkdgevent.inc » class.atkdgindex.inc » class.atkdglimit.inc » class.atkdglist.inc » class.atkdglistener.inc » class.atkdgnorecordsfound.inc » class.atkdgpaginator.inc » class.atkdgrenderer.inc » class.atkdgsummary.inc datatypes » class.atkarraydt.inc » class.atkdatatype.inc » class.atkstringdt.inc » class.atktimedt.inc db » class.atkclusterdb.inc » class.atkclusterddl.inc » class.atkclusterquery.inc » class.atkdb.inc » class.atkdb2db.inc » class.atkdb2ddl.inc » class.atkdb2query.inc » class.atkddl.inc » class.atkmockdb.inc » class.atkmockddl.inc » class.atkmockquery.inc » class.atkmssqldb.inc » class.atkmssqlddl.inc » class.atkmssqlquery.inc » class.atkmysqldb.inc » class.atkmysqlddl.inc » class.atkmysqlidb.inc » class.atkmysqliddl.inc » class.atkmysqliquery.inc » class.atkmysqlquery.inc » class.atkoci8db.inc » class.atkoci8ddl.inc » class.atkoci8query.inc » class.atkoci9db.inc » class.atkoci9ddl.inc » class.atkoci9query.inc » class.atkoci805db.inc » class.atkoci805query.inc » class.atkpgsqldb.inc » class.atkpgsqlddl.inc » class.atkpgsqlquery.inc » class.atkquery.inc db-statement » class.atkcompatstatement.inc » class.atkmysqlistatement.inc » class.atkstatement.inc » class.atkstatementexception.inc » class.atkstatementparser.inc document » class.atkdocumentwriter.inc » class.atkdocxwriter.inc » class.atkopendocumentwriter.inc filters » class.atkdistinctfilter.inc » class.atkfilter.inc » class.atkgroupbyfilter.inc fixture » class.atkabstractfixtureloader.inc » class.atkfixturemanager.inc » class.atkphpfixtureloader.inc » class.atkyamlfixtureloader.inc front » class.atkfrontcontroller.inc » class.atkfrontcontrollerbridge.inc handlers » class.atkactionhandler.inc » class.atkaddhandler.inc » class.atkaddorcopyhandler.inc » class.atkadminhandler.inc » class.atkattributeedithandler.inc » class.atkcopyhandler.inc » class.atkdeletehandler.inc » class.atkdocumenthandler.inc » class.atkeditcopyhandler.inc » class.atkedithandler.inc » class.atkexporthandler.inc » class.atkfeedbackhandler.inc » class.atkfileexport.inc » class.atkimporthandler.inc » class.atkmultiselecthandler.inc » class.atkmultiupdatehandler.inc » class.atksavehandler.inc » class.atksearchhandler.inc » class.atkselecthandler.inc » class.atksmartsearchhandler.inc » class.atkupdatehandler.inc » class.atkvieweditbase.inc » class.atkviewhandler.inc » class.atkxmlhandler.inc include » autoload.inc » basics.inc » compatibility.inc » configs.inc » debugging.inc » errorhandler.inc » globals.inc » initial.inc » security.inc interface » class.atkserver.inc » class.atksoapserver.inc » interface.atkserverinterface.inc javascript » class.atkmultilanguage.js.php » class.atkprofileattribute.js.php » dhtml_tabs.js.php keyboard » class.atkkeyboard.inc listeners » class.atkrecyclebin.inc lock » class.atkdblock.inc » class.atklock.inc » lock.php lock-- » lock.js.php menu » atkmenutools.inc » class.atkcookmenu.inc » class.atkdhtmlmenu.inc » class.atkdropdownmenu.inc » class.atkframesmenu.inc » class.atkmenu.inc » class.atkmenuinterface.inc » class.atkmodernmenu.inc » class.atkoutlookmenu.inc » class.atkplainmenu.inc meta » class.atkdutchmetagrammar.inc » class.atkmetaattributemodifier.inc » class.atkmetacompiler.inc » class.atkmetagrammar.inc » class.atkmetapolicy.inc » module.inc meta-relations » class.atkmetaextendableshuttlerelation.inc » class.atkmetamanyboolrelation.inc » class.atkmetamanytomanylistrelation.inc » class.atkmetamanytomanyselectrelation.inc » class.atkmetamanytoonerelation.inc » class.atkmetaonetomanyrelation.inc » class.atkmetaonetoonerelation.inc » class.atkmetashuttlerelation.inc modules » class.atkmodule.inc modules-- » atkmoduletools.inc popups » colorpicker.inc recordlist » class.atkcolumnconfig.inc » class.atkcsvrecordlist.inc » class.atkcustomrecordlist.inc » class.atkexcelcsvrecordlist.inc » class.atkhtmlrecordlist.inc » class.atkprintablerecordlist.inc » class.atkrecordlist.inc » class.atkrecordlistcache.inc » class.atktotalizer.inc relations » class.atkextendableshuttlerelation.inc » class.atkmanyboolrelation.inc » class.atkmanytomanylistrelation.inc » class.atkmanytomanyrelation.inc » class.atkmanytomanyselectrelation.inc » class.atkmanytoonerelation.inc » class.atkmanytoonetreerelation.inc » class.atkmatrixrelation.inc » class.atkonetomanyrelation.inc » class.atkonetoonerelation.inc » class.atkrelation.inc » class.atksecurerelation.inc » class.atkshuttlecontrol.inc » class.atkshuttlefilter.inc » class.atkshuttlerelation.inc security » class.atkbajusencryption.inc » class.atkbase64encryption.inc » class.atkencryption.inc » class.atkmocksecuritymanager.inc » class.atkmocksecuritymanager.inc » class.atkopensslencryption.inc » class.atksecuritylistener.inc » class.atksecuritymanager.inc » class.atkurlvault.inc » class.auth_config.inc » class.auth_db.inc » class.auth_imap.inc » class.auth_interface.inc » class.auth_ldap.inc » class.auth_none.inc » class.auth_pop3.inc » class.auth_saml.inc » class.auth_server.inc » class.auth_sspi.inc session » class.atksessionmanager.inc » class.atkstate.inc skel » app.php » atk.inc » config.inc.php » debugger.php » dispatch.php » include.php » index.php » menu.php » top.php » welcome.php subpackage » class.atkattributetestcase.inc test » class.atkcachetestcase.inc » class.atkplugintestcase.inc » class.atktestcase.inc testcases » class.atkabstractsearchhandler.inc themes » themedef.inc » themedef.inc » themedef.inc » themedef.inc » themedef.inc » themedef.inc » themedef.inc » themedef.inc » themedef.inc » themedef.inc » themedef.inc » themedef.inc ui » block.atknavigator.php » block.atknavigatorinfo.php » class.atkactionboxbuilder.inc » class.atkdialog.inc » class.atkindexpage.inc » class.atkoutput.inc » class.atkpage.inc » class.atkpagebuilder.inc » class.atktheme.inc » class.atkthemecompiler.inc » class.atkui.inc » function.atkconf.php » function.atkconfig.php » function.atkdatefield.php » function.atkdispatchfile.php » function.atkfrontcontroller.php » function.atkloadscript.php » function.atkmessages.php » function.atkmoduledir.php » function.atkscript.php » function.atkstyle.php » function.atktext.php » function.atkthemeicon.php » function.atkthemeimg.php » function.stacktrace.php » modifier.atkjson.php » modifier.atkvardump.php » resource.string.php » resource.theme.php » resource.ui.php utils » atkbrowsertools.inc » class.atkactionlistener.inc » class.atkclassloader.inc » class.atkcompatselector.inc » class.atkdataholder.inc » class.atkdebugger.inc » class.atkdirectorytraverser.inc » class.atkeventlog.inc » class.atkfileutils.inc » class.atkframeset.inc » class.atkiputils.inc » class.atkjson.inc » class.atkmail.inc » class.atkmailer.inc » class.atkmessagequeue.inc » class.atkmlselector.inc » class.atkmlsplitter.inc » class.atkselector.inc » class.atkselectoriterator.inc » class.atkstring.inc » class.atkstringparser.inc » class.atktablerenderer.inc » class.atktablerenderergrouped.inc » class.atktextmarker.inc » class.atktmpfile.inc » class.atktriggerlistener.inc » class.atkyaml.inc » class.atkzip.inc » help.inc wizard » class.atkwizard.inc » class.atkwizardactionloader.inc » class.atkwizardpanel.inc
Home  ->  Documentation home  ->  Atk index  ->  Docs for page atktools.inc [ package: atk ]

Procedural File: atktools.inc

Source Location: /atktools.inc

Page Details

This file is part of the Achievo ATK distribution.

Detailed copyright and licensing information can be found in the doc/COPYRIGHT and doc/LICENSE files which should be included in the distribution.

Version:  $Revision: 7105 $ $Id: atktools.inc 7105 2011-02-25 12:23:07Z sandy $
Copyright:  (c)2000-2007 Ibuildings.nl BV
Copyright:  (c)2000-2007 Ivo Jansch
Todo:  Document all of the functions
Todo:  Move all these functions to relevant classes.
License:  ATK Open Source License

Constants

DEBUG_ERROR  [line 45]

DEBUG_ERROR = 8

Error message.


[ Top ]

DEBUG_HTML  [line 27]

DEBUG_HTML = 1

Converts applicable characters to html entities so they aren't interpreted by the browser.


[ Top ]

DEBUG_NOTICE  [line 40]

DEBUG_NOTICE = 4

Hides the debug unless in level 2.

This should be used for debug you only really want to see if you are developing (like deprecation warnings).


[ Top ]

DEBUG_WARNING  [line 33]

DEBUG_WARNING = 2

Wraps the text into html bold tags in order to make warnings more clearly visible.


[ Top ]


Functions

AE_decode  [line 856]

void AE_decode( array &$dest, string $var  )

Weird function. $dest is an associative array, that may contain stuff like $dest["a_AE_c_AE_b"] = 3.

Now if you run this function like this: AE_decode($dest, "a_AE_c_AE_b"); then $dest will contain a decoded array: echo $dest["a"]["b"]["c"]; <- this will display 3

Parameters:
array   &$dest:  the array to put the decoded var in
string   $var:  the var to decode


[ Top ]
atkActionStatus  [line 1462]

void atkActionStatus( var $status  )

Returns a string representation of an action status.

Parameters:
var   $status:  status of the action (ACTION_FAILED|ACTION_SUCCESS|ACTION_CANCELLED)


[ Top ]
atkArrayCompare  [line 1741]

boolean atkArrayCompare( array $array1, array $array2  )

Compares two assosiative multi dimensonal array's

if arrays differ, return true, otherwise it returns false

Parameters:
array   $array1:  original array
array   $array2:  new array

API Tags:
Return:  wether or not the arrays differ


[ Top ]
atkArrayDiff  [line 1755]

mixed atkArrayDiff( array $array1, array $array2  )

Compares two assosiative multi dimensonal array's

if arrays differ, return differences, otherwise it returns false

Parameters:
array   $array1:  original array
array   $array2:  new array

API Tags:
Return:  differences or false if they do not differ


[ Top ]
atkArrayNvl  [line 1982]

mixed atkArrayNvl( array $array, string $key, [mixed $defaultvalue = null]  )

Looks up a value using the given key in the given array and returns the value if found or a default value if not found.

Parameters:
array   $array:  Array to be searched for key
string   $key:  Key for which we are looking in array
mixed   $defaultvalue:  Value we will return if key was not found in array

API Tags:
Return:  Value retrieved from array or default value if not found in array


[ Top ]
atkButton  [line 1605]

void atkButton( string $text, [string $url = &quot;&quot;], [var $sessionstatus = SESSION_DEFAULT], [ $embedded = true], [string $cssclass = &quot;&quot;], bool $embeded  )

Creates a session aware button

Parameters:
string   $text:  the text to display on the button
string   $url:  the url to use for the button
var   $sessionstatus:  the session flags (SESSION_DEFAULT (default)|SESSION_NEW|SESSION_REPLACE| SESSION_NESTED|SESSION_BACK)
string   $cssclass:  the css class the button should get
bool   $embeded:  wether or not it's an embedded button
   $embedded: 


[ Top ]
atkCleanPath  [line 1679]

cleaned-up atkCleanPath( string $path  )

Clean-up the given path.

Parameters:
string   $path: 

API Tags:
Return:  path
See:  http://nl2.php.net/manual/en/function.realpath.php (comment of 21st of September 2005)


[ Top ]
atkClone  [line 2036]

object atkClone( object $attribute  )

Function checks php version and clones the given attribute in the right way

Parameters:
object   $attribute:  The attribute to clone


[ Top ]
atkDataDecode  [line 810]

void atkDataDecode( array &$vars  )

Performs stripslashes on all vars and translates: something_AMDAE_other[] into something[][other] something_AE_other into something[other] (and a_AE_b_AE_c into a[b][c] and so on...

Parameters:
array   &$vars:  the array to be stripped and translated


[ Top ]
atkdebug  [line 227]

void atkdebug( String $txt, [Integer $flags = 0]  )

Function atkdebug

Adds debug text to the debug log

Parameters:
String   $txt:  The text that will be added to the log
Integer   $flags:  An optional combination of DEBUG_ flags


[ Top ]
atkEcho  [line 2095]

void atkEcho( $message  )
Parameters:
   $message: 


[ Top ]
atkerror  [line 305]

void atkerror( string|Exception $error  )

Like atkdebug, this displays a message at the bottom of the screen.

The difference is, that this is also displayed when debugging is turned off.

If error reporting by email is turned on, the error messages are also send by e-mail.

Parameters:
string|Exception   $error:  the error text or exception to display


[ Top ]
atkErrorHandler  [line 60]

void atkErrorHandler( $errtype: $errtype, $errstr: $errstr, $errfile: $errfile, $errline: $errline  )

Function atkErrorHandler This function catches PHP parse errors etc, and passes them to atkerror(), so errors can be mailed and output can be regulated.

This funtion must be registered with set_error_handler("atkErrorHandler");

Parameters:
$errtype:   $errtype:  One of the PHP errortypes (E_PARSE, E_USER_ERROR, etc)
$errstr:   $errstr:  Error text
$errfile:   $errfile:  The php file in which the error occured.
$errline:   $errline:  The line in the file on which the error occured.


[ Top ]
atkExceptionHandler  [line 140]

void atkExceptionHandler( $exception  )

Default ATK exception handler, handles uncaught exceptions and calls atkHalt.

Parameters:
Exception   $exception:  uncaught exception


[ Top ]
atkexists  [line 1357]

void atkexists( string $type, string $name  )

Check if an atk class exists (attribute, relation or filter)

Parameters:
string   $type:  the type of the class (attribute|relation|filter)
string   $name:  the name of the class


[ Top ]
atkFormatDate  [line 2113]

string atkFormatDate( $date $date, $format $format, [$weekday $weekday = false]  )

Format date according to a format string, uses ATK's language files to translate months, weekdays etc.

Parameters:
$date   $date:  timestamp or date array (gotten with getdate())
$format   $format:  format string, compatible with PHP's date format functions
$weekday   $weekday:  always include day-of-week or not

API Tags:
Return:  formatted date


[ Top ]
atkGetCharset  [line 1968]

string atkGetCharset( )

Return the default charset, first we look if the

config_default_charset is set, else we use the charset in the languge file;



[ Top ]
atkGetClientIp  [line 2008]

string atkGetClientIp( )

Returns the IP of the remote client.


API Tags:
Return:  ip address


[ Top ]
atkGetDb  [line 1055]

atkDb &atkGetDb( [String $conn = 'default'], [ $reset = false], [ $mode = &quot;r&quot;]  )

Convenience wrapper for atkDb::getInstance()

Parameters:
String   $conn:  The name of the connection to retrieve
   $reset: 
   $mode: 

API Tags:
Return:  Database connection instance


[ Top ]
atkgetinclude  [line 1342]

void atkgetinclude( string $type, string $name  )

Returns the include file for an atk class (attribute, relation or filter)

Parameters:
string   $type:  the type of the class (attribute|relation|filter)
string   $name:  the name of the class


[ Top ]
atkGetPostVar  [line 1862]

void atkGetPostVar( [ $key = &quot;&quot;]  )
Parameters:
   $key: 


[ Top ]
atkGetTimingInfo  [line 290]

void atkGetTimingInfo( )


[ Top ]
atkGetTrace  [line 341]

string atkGetTrace( [string $format = &quot;html&quot;]  )

Returns a trace-route from all functions where-through the code has been executed

Parameters:
string   $format:  (html|plaintext)

API Tags:
Return:  Backtrace in html or plaintext format


[ Top ]
atkhalt  [line 163]

bool atkhalt( string $msg, [string $level = &quot;warning&quot;]  )

Function atkhalt Halts on critical errors and also on warnings if specified in the config file.

Parameters:
string   $msg:  The message to be displayed
string   $level:  The level of the error, ("critical"|"warning" (default))

API Tags:
Return:  false if something goes horribly wrong


[ Top ]
atkHost  [line 1376]

string atkHost( )

Returns the (virtual) hostname of the server.


API Tags:
Return:  the hostname of the server


[ Top ]
atkHref  [line 578]

void atkHref( $url, [ $name = &quot;&quot;], [ $sessionstatus = SESSION_DEFAULT], [ $saveform = false], [ $extraprops = &quot;&quot;]  )

Convenience wrapper for atkSessionManager::href().

Parameters:
   $url: 
   $name: 
   $sessionstatus: 
   $saveform: 
   $extraprops: 

API Tags:
See:  atkSessionManager::href


[ Top ]
atkimport  [line 1641]

bool atkimport( string $fullclassname, [bool $failsafe = true], [bool $path = false]  )

Imports a file

Parameters:
string   $fullclassname:  Name of class in atkformat (map1.map2.classfile)
bool   $failsafe:  If $failsafe is true (default), the class is required. Otherwise, the class is included.
bool   $path:  Whether or not it is NOT an ATK classname ("map.class"), if true it will interpret classname as: "map/class.classname.inc", default false.

API Tags:
Return:  whether the file we want to import was actually imported or not


[ Top ]
atkinstance  [line 1729]

obj atkinstance( string $fullclassname, [ $reset = false]  )

Return a singleton instance of the specified class.

This works for all singletons that implement the getInstance() method.

Parameters:
string   $fullclassname:  the ATK classname of the class ("map1.map2.classname")
   $reset: 

API Tags:
Return:  instance of the class


[ Top ]
atknew  [line 1713]

obj atknew( string $fullclassname  )

Returns a new instance of a class

Parameters:
string   $fullclassname:  the ATK classname of the class ("map1.map2.classname")

API Tags:
Return:  instance of the class


[ Top ]
atknotice  [line 272]

void atknotice( String $txt  )

Send a notice to the debug log.

A notice doesn't get show unless your debug level is 3 or higher.

Parameters:
String   $txt:  The text that will be added to the log


[ Top ]
atkNvl  [line 2081]

mixed atkNvl( [mixed 0 = ... arguments]  )

Returns the first argument that is not null.

Parameters:
mixed   0:  ... arguments

API Tags:
Return:  first argument that is not null


[ Top ]
atkPopup  [line 1073]

void atkPopup( string $target, string $params, string $winName, int $width, int $height, [string $scroll = 'no'], [string $resize = 'no']  )

Returns a url to open a popup window

Parameters:
string   $target:  the target of the popup
string   $params:  extra params to pass along
string   $winName:  the name of the window
int   $width:  the width of the popup
int   $height:  the height of the popup
string   $scroll:  allow scrolling? (no (default)|yes)
string   $resize:  allow resizing? (no (default)|yes) return string the url for the popup window


[ Top ]
atkResolveClass  [line 1997]

String atkResolveClass( String $class  )

Resolve a classname to its final classname.

An application can overload a class with a custom version. This method resolves the initial classname to its overloaded version (if any).

Parameters:
String   $class:  The name of the class to resolve

API Tags:
Return:  The resolved classname


[ Top ]
atkSelf  [line 2052]

String atkSelf( )

Return the current script file. Like $_SERVER['PHP_SELF'], but sanitized for security reasons



[ Top ]
atktext  [line 527]

String atktext( mixed $string, [String $module = &quot;&quot;], [String $node = &quot;&quot;], [String $lng = &quot;&quot;], [String $firstfallback = &quot;&quot;], [boolean $nodefaulttext = false], [boolean $modulefallback = false]  )

Replaces the [vars] with the values from the language files

Please note that it is important, for performance reasons, that you pass along the module where the language files can be found

Parameters:
mixed   $string:  string or array of strings containing the name(s) of the string to return when an array of strings is passed, the second will be the fallback if the first one isn't found, and so forth
String   $module:  module in which the language file should be looked for, defaults to core module with fallback to ATK
String   $node:  the node to which the string belongs
String   $lng:  ISO 639-1 language code, defaults to config variable
String   $firstfallback:  the first module to check as part of the fallback
boolean   $nodefaulttext:  if true, then it doesn't return a default text when it can't find a translation
boolean   $modulefallback:  Wether or not to use all the modules of the application in the fallback, when looking for strings

API Tags:
Return:  the string from the languagefile


[ Top ]
atkTrace  [line 1565]

void atkTrace( [string $msg = &quot;&quot;]  )

Writes trace file to system tmp directory

Parameters:
string   $msg:  message to display in the trace


[ Top ]
atkTriggerError  [line 1103]

void atkTriggerError( &$record, &$attrib, string $error, [string $message = ''], array $record, atkAttribute|array $attrib  )

Adds new element to the record error array. When no message is given the multi-language error string is used.

Parameters:
array   $record:  record
atkAttribute|array   $attrib:  attribute or array of attributes
string   $error:  multi-language error string
string   $message:  error message (optional)
   &$record: 
   &$attrib: 


[ Top ]
atkurldecode  [line 971]

void atkurldecode( $string  )
Parameters:
   $string: 


[ Top ]
atkurlencode  [line 961]

string atkurlencode( string $string, [bool $pref = true]  )

Safe urlencode function. Note, you can reencode already encoded strings, but

not more than 9 times! If you encode a string more than 9 times, you won't be able to decode it anymore

An atkurlencoded string is normaly prefixed with '__', so atkurldecode can determine whether the string was encoded or not. Sometimes however, if you need to reencode part of a string (used in recordlist), you don't want the prefix. Pass false as second parameter, and you won't get a prefix. (Note that you can't atkurldecode that string anymore, so only use this on substrings of already encoded strings)

Parameters:
string   $string:  the url to encode
bool   $pref:  wether or not to use a prefix, default true

API Tags:
Return:  the encoded url

Information Tags:
Todo:  Fix a problem where a string containing "_9" will be altered after encoding + decoding it.

[ Top ]
atkuse  [line 1367]

void atkuse( string $type, string $name  )

Use an atk class (attribute, relation or filter)

Parameters:
string   $type:  the type of the class (attribute|relation|filter)
string   $name:  the name of the class


[ Top ]
atkversion  [line 1044]

string atkversion( )

Return the atk version number.


API Tags:
Return:  the version number of ATK


[ Top ]
atkwarning  [line 285]

void atkwarning( string $txt  )

Send a warning to the debug log.

A warning gets shown more prominently than a normal debug line. However it does not trigger a mailreport or anything else that an atkerror triggers.

Parameters:
string   $txt: 


[ Top ]
atkWriteLog  [line 476]

void atkWriteLog( String $text  )

Writes info to the optional debug logfile.

Please notice this feature will heavily decrease the performance and should therefore only be used for debugging and development purposes.

Parameters:
String   $text:  text to write to the logfile


[ Top ]
atkWriteToFile  [line 459]

void atkWriteToFile( String $text, [String $file = &quot;&quot;]  )

Writes info to a given file.

Useful for writing to any log files.

Parameters:
String   $text:  text to write to the logfile
String   $file:  the file name


[ Top ]
atk_array_merge  [line 592]

Array atk_array_merge( Array $array1, Array $array2  )

Same as array_merge from php, but without duplicates..

Supports unlimited number of arrays as arguments.

Parameters:
Array   $array1:  the first array
Array   $array2:  the second array

API Tags:
Return:  The result of the merge between $array1 and $array2


[ Top ]
atk_array_merge_keys  [line 652]

Array atk_array_merge_keys( [Array $array = unlimited number of arrays]  )

Same as array_merge from php, but this function preserves key=>index association in case of numerical indexes. Supports unlimited number of arrays as arguments.

Parameters:
Array   $array:  unlimited number of arrays

API Tags:
Return:  The result of the merge between the given arrays


[ Top ]
atk_array_merge_recursive  [line 620]

array atk_array_merge_recursive( array $array1, array $array2  )

Same as array_merge_recursive from PHP but without duplicates.

Supports unlimited number of arrays as arguments.

Parameters:
array   $array1:  first array
array   $array2:  second array

API Tags:
Return:  merged arrays


[ Top ]
atk_get_trace  [line 448]

void atk_get_trace( [ $format = &quot;html&quot;]  )
Parameters:
   $format: 

API Tags:
Deprecated:  Use atkGetTrace instead


[ Top ]
atk_htmlentities  [line 1886]

String atk_htmlentities( String $string, [int $quote_style = ENT_COMPAT], [String $charset = null]  )

ATK version of the PHP htmlentities function. Works just like PHP's htmlentities function, but falls back to atkGetCharset() instead of PHP's default charset, if no charset is given.

Parameters:
String   $string:  string to convert
int   $quote_style:  quote style (defaults to ENT_COMPAT)
String   $charset:  character set to use (default to atkGetCharset())

API Tags:
Return:  encoded string


[ Top ]
atk_html_entity_decode  [line 1902]

String atk_html_entity_decode( String $string, [int $quote_style = ENT_COMPAT], [String $charset = null]  )

ATK version of the PHP html_entity_decode function. Works just like PHP's html_entity_decode function, but falls back to atkGetCharset() instead of PHP's default charset, if no charset is given.

Parameters:
String   $string:  string to convert
int   $quote_style:  quote style (defaults to ENT_COMPAT)
String   $charset:  character set to use (default to atkGetCharset())

API Tags:
Return:  encoded string


[ Top ]
atk_iconv  [line 2070]

string atk_iconv( string $in_charset, string $out_charset, string $str  )

ATK wrapper of the PHP iconv function. Check if iconv function is present in the system. If yes - use it for converting string, if no - save string untouch and make warning about it.

Parameters:
string   $in_charset:  from charset
string   $out_charset:  to charset
string   $str:  string to convert

API Tags:
Return:  encoded string


[ Top ]
atk_in_array  [line 677]

bool atk_in_array( mixed $needle, Array $haystack, [boolean $strict = false]  )

Since php triggers an error if you perform an in_array on an uninitialised array, we provide a small wrapper that performs an is_array on the haystack first, just to make sure the user doesn't get an error message.

Parameters:
mixed   $needle:  The value to search for.
Array   $haystack:  The array to search.
boolean   $strict:  If true, type must match.

API Tags:
Return:  wether or not the value is in the array


[ Top ]
atk_in_array_recursive  [line 1822]

Boolean atk_in_array_recursive( String $needle, Array $haystack  )

Recursive function to look if the needle exists in the haystack

WARNING: take care with using this function as it is recursive and if you have a value linking back to it's self in one way or another, you may spend a loooong time waiting on your application

Parameters:
String   $needle:  The value which will be searched in the haystack
Array   $haystack:  Array with values

API Tags:
Return:  True if needle exists in haystack


[ Top ]
atk_stripslashes  [line 787]

void atk_stripslashes( var &$var  )

Same as strip_slashes from php, but if the passed value is an array, all elements of the array are stripped. Recursive function.

Parameters:
var   &$var:  the value/array to strip the slashes of


[ Top ]
atk_strlen  [line 1912]

int atk_strlen( string $str  )

Get string length

Parameters:
string   $str:  The string being checked for length


[ Top ]
atk_strpos  [line 1936]

int|boolean atk_strpos( object $haystack, object $needle, [ $offset = 0], object $offset[optional]  )

Find position of first occurrence of string in a string

Parameters:
object   $haystack:  The string being checked.
object   $needle:  The position counted from the beginning of haystack .
object   $offset[optional]:  The search offset. If it is not specified, 0 is used.
   $offset: 


[ Top ]
atk_strtolower  [line 1946]

string atk_strtolower( string $str  )

Make a string lowercase

Parameters:
string   $str:  The string being lowercased.


[ Top ]
atk_strtoupper  [line 1957]

string atk_strtoupper( string $str  )

Make a string uppercase

Parameters:
string   $str:  The string being uppercased.


[ Top ]
atk_substr  [line 1924]

string atk_substr( string $str, int $start, [ $length = ''], int $length[optional]  )

Get part of string

Parameters:
string   $str:  The string being checked.
int   $start:  The first position used in $str
int   $length[optional]:  The maximum length of the returned string
   $length: 


[ Top ]
atk_value_in_array  [line 1795]

bool atk_value_in_array( Array $array  )

Recursive function that checks an array for values because sometimes arrays will be filled with other empty arrays and therefore still show up filled.

WARNING: take care with using this function as it is recursive and if you have a value linking back to it's self in one way or another, you may spend a loooong time waiting on your application

Parameters:
Array   $array:  The array that

API Tags:
Return:  Wether or not we found anything


[ Top ]
atk_var_dump  [line 1171]

void atk_var_dump( $a $a, [$d $d = &quot;&quot;]  )

Does a var dump of an array. Makes use of atkdebug for displaying the values.

Parameters:
$a   $a:  data to be displayed
$d   $d:  name of the data that's being displayed.


[ Top ]
buildQueryString  [line 1477]

void buildQueryString( array $params, [ $parent = &quot;&quot;]  )

Build query string based on an array of parameters.

Parameters:
array   $params:  array of parameters
   $parent: 


[ Top ]
dataSetContains  [line 691]

bool dataSetContains( array $set, var $key, var $value  )

Function dataSetContains

Checks if a value is in a Array

Parameters:
array   $set:  the array
var   $key:  the key in the array as in $array[$key]
var   $value:  the value we are looking for

API Tags:
Return:  wether or not the value is in the array


[ Top ]
decodeKeyValuePair  [line 719]

array decodeKeyValuePair( string $pair  )

Translates a string like id='3' into Array("id"=>3)

Parameters:
string   $pair:  the string which is to be decoded

API Tags:
Return:  the decoded array


[ Top ]
decodeKeyValueSet  [line 740]

array decodeKeyValueSet( string $set  )

Translates a string like id='3 AND name='joe'' into Array("id"=>3,"name"=>"joe")

Parameters:
string   $set:  the string to decode

API Tags:
Return:  the decoded array

Information Tags:
Todo:  we should also support <=>, >=, >, <=, <, <>

[ Top ]
dispatch_url  [line 1515]

string dispatch_url( string $node, string $action, [ $params = array()], [string $phpfile = ''], string $params:  )

Generate a dispatch menu URL for use with nodes and their specific actions.

Note that this does not necessarily create a link to the current php file (dispatch.php, index.php). It asks the controller which one to use.

Parameters:
string   $node:  the (module.)node name
string   $action:  the atk action the link will perform
string   $params::  A key/value array with extra options for the url
string   $phpfile:  The php file to use for dispatching, if not set we look at the theme for the dispatchfile
   $params: 

API Tags:
Return:  url for the node with the action


[ Top ]
elapsed  [line 214]

string elapsed( )

API Tags:
Return:  elapsed time in microseconds
Deprecated:  Use atkDebugger::elapsed();


[ Top ]
encodeKeyValueSet  [line 771]

string encodeKeyValueSet( array $set  )

Translates Array("id"=>3,"name"=>"joe") into a string like id='3 AND name='joe''

Parameters:
array   $set:  the array to be encoded

API Tags:
Return:  the encoded string


[ Top ]
escapeForRegex  [line 1844]

String escapeForRegex( String $pattern  )

Escapes the predefined characters

When there are predefined characters used this function will escape them and returns right pattern.

Parameters:
String   $pattern:  Raw string to be escaped

API Tags:
Return:  Returns a pattern with the predefined pattern escaped


[ Top ]
escapeSQL  [line 1034]

String escapeSQL( String $string, [boolean $wildcard = false]  )

Wrapper for escapeSQL function

Parameters:
String   $string:  The string to escape.
boolean   $wildcard:  Set to true to convert wildcard chars ('%'). False (default) will leave them unescaped.

API Tags:
Return:  A SQL compatible version of the input string.


[ Top ]
exportData  [line 1187]

void exportData( $data, $filename, [ $compression = &quot;&quot;]  )

This function writes data to the browser for download.

$data is the data to download. $filename is the name the file will get when the user downloads it. $compression can be "zip", "gzip" or "bzip", which causes the data to be compressed before transmission.

Parameters:
   $data: 
   $filename: 
   $compression: 


[ Top ]
exportFile  [line 1267]

bool exportFile( string $file, string $filename, [string $mimetype = &quot;&quot;], [ $detectmime = true]  )

This function writes a binary file to the browser for download.

Parameters:
string   $file:  the local filename (the file you want to open on the serverside)
string   $filename:  the name the file will get when the user downloads it.
string   $mimetype:  the mimetype of the file
   $detectmime: 

API Tags:
Return:  wether or not the export worked


[ Top ]
getClassName  [line 1703]

string getClassName( string $classpath, [bool $class = true]  )

Converts a pathname ("/map1/map2/class.classname.inc")

to an ATK classname ("map1.map2.classname")

Parameters:
string   $classpath:  pathname to be converted
bool   $class:  is the file a class? defaults to true

API Tags:
Return:  converted filename


[ Top ]
getClassPath  [line 1691]

string getClassPath( string $fullclassname, [bool $class = true]  )

Converts an ATK classname ("map1.map2.classname")

to a pathname ("/map1/map2/class.classname.inc")

Parameters:
string   $fullclassname:  ATK classname to be converted
bool   $class:  is the file a class? defaults to true

API Tags:
Return:  converted filename


[ Top ]
getDispatchFile  [line 1536]

void getDispatchFile( )

API Tags:
Deprecated:  Use atkcontroller::getPhpFile() instead.


[ Top ]
getmicrotime  [line 203]

int getmicrotime( )

API Tags:
Return:  the microtime
Deprecated:  Use atkDebugger::getMicroTime()


[ Top ]
getUniqueID  [line 1394]

int getUniqueID( string $sequence  )

Returns the next unique ID for the given sequence.

NOTE: ID's are only unique for the script execution!

Parameters:
string   $sequence:  the sequence name

API Tags:
Return:  next unique ID for the given sequence


[ Top ]
halt  [line 150]

void halt( $msg, [ $level = &quot;warning&quot;]  )
Parameters:
   $msg: 
   $level: 

API Tags:
Deprecated:  Use atkhalt instead.


[ Top ]
handleError  [line 1012]

void handleError( )

Handle errors that occurred in ATK, available handlers from /atk/errors/ can be added to the error_handlers config.



[ Top ]
hasFlag  [line 1410]

bool hasFlag( string $var, var $flag  )

Checks if the variable $var contains the given flag ($flag).

Parameters:
string   $var:  the variable which might contain flags
var   $flag:  the flag you want to check for

API Tags:
Return:  result of check


[ Top ]
href  [line 569]

void href( $url, [ $name = &quot;&quot;], [ $sessionstatus = SESSION_DEFAULT], [ $saveform = false], [ $extraprops = &quot;&quot;]  )
Parameters:
   $url: 
   $name: 
   $sessionstatus: 
   $saveform: 
   $extraprops: 

API Tags:
Deprecated:  use atkHref or atkSessionManager::href instead.


[ Top ]
mailreport  [line 999]

void mailreport( )

Send a detailed error report to the maintainer.



[ Top ]
makeHiddenPostvars  [line 1440]

void makeHiddenPostvars( [array $excludes = array()]  )

Makes an string with hidden input fields containing all posted vars

Parameters:
array   $excludes:  array with the vars to exclude, default empty


[ Top ]
makeUrlFromPostvars  [line 1420]

void makeUrlFromPostvars( string $target, string 1  )

Makes an url from the target var and all postvars

Parameters:
string   $target:  the path of the file to open
string   1:  the url with the postvars


[ Top ]
partial_url  [line 1552]

string partial_url( string $node, string $action, string $partial, [array $params = array()], [int $sessionStatus = SESSION_PARTIAL]  )

Generate a partial url.

Parameters:
string   $node:  the (module.)node name
string   $action:  the atkaction
string   $partial:  the partial name
array   $params:  a key/value array with extra params
int   $sessionStatus:  session status (default SESSION_PARTIAL)

API Tags:
Return:  url for the partial action


[ Top ]
session_form  [line 544]

void session_form( [ $sessionstatus = SESSION_DEFAULT], [ $returnbehaviour = null], [ $fieldprefix = '']  )
Parameters:
   $sessionstatus: 
   $returnbehaviour: 
   $fieldprefix: 

API Tags:
Deprecated:  Use atkSessionManager::formState instead.


[ Top ]
session_level  [line 536]

void session_level( [ $sessionstatus = SESSION_DEFAULT], [ $levelskip = null]  )
Parameters:
   $sessionstatus: 
   $levelskip: 

API Tags:
Deprecated:  Use atkSession::newLevel() instead


[ Top ]
session_url  [line 560]

void session_url( $url, [ $sessionstatus = SESSION_DEFAULT], [ $levelskip = null]  )
Parameters:
   $url: 
   $sessionstatus: 
   $levelskip: 

API Tags:
Deprecated:  use atkSessionManager::sessionUrl() instead.


[ Top ]
session_vars  [line 552]

void session_vars( [ $sessionstatus = SESSION_DEFAULT], [ $levelskip = null], [ $url = &quot;&quot;]  )
Parameters:
   $sessionstatus: 
   $levelskip: 
   $url: 

API Tags:
Deprecated:  Use atkSessionManager::sessionVars() instead.


[ Top ]
stringfields  [line 883]

void stringfields( $string  )

Get the [ ] Fields out of a String

Parameters:
   $string: 

API Tags:
Deprecated:  please use the atkStringParser class


[ Top ]
stringparse  [line 914]

void stringparse( $string, $data, [ $encode = false]  )

Parse strings

Parameters:
   $string: 
   $data: 
   $encode: 

API Tags:
Deprecated:  please use the atkStringParser class


[ Top ]
stripQuotes  [line 706]

string stripQuotes( string $string  )

Strips ' or " from the begin and end of a string (only if they are on both sides, e.g. foo' remains foo' but 'bar' becomes bar.

Parameters:
string   $string:  the string we need to strip

API Tags:
Return:  the stripped string


[ Top ]
text  [line 502]

String text( mixed $string, [String $node = &quot;&quot;], [String $module = &quot;&quot;], [String $lng = &quot;&quot;], [String $firstfallback = &quot;&quot;], [boolean $nodefaulttext = false]  )

Replaces the [vars] with the values from the language files

Please note that it is important, for performance reasons, that you pass along the module where the language files can be found

Parameters:
mixed   $string:  string or array of strings containing the name(s) of the string to return when an array of strings is passed, the second will be the fallback if the first one isn't found, and so forth
String   $module:  module in which the language file should be looked for, defaults to core module with fallback to ATK
String   $node:  the node to which the string belongs
String   $lng:  ISO 639-1 language code, defaults to config variable
String   $firstfallback:  the first module to check as part of the fallback
boolean   $nodefaulttext:  if true, then it doesn't return a default text when it can't find a translation

API Tags:
Return:  the string from the languagefile
Deprecated:  Use atktext instead


[ Top ]
triggerError  [line 1088]

void triggerError( array &$rec, var$attrib $attrib, string $err, [string $msg = &quot;&quot;], [ $tab = &quot;&quot;], [ $label = ''], [ $module = 'atk']  )

Adds new element to error array en $record. When $msg is empty the multilange error string is used.

Parameters:
array   &$rec:  var in which to add element to error array
string   $err:  multilanguage error string
string   $msg:  optinal error string
var$attrib   $attrib:  attributename or an array with attribute names
   $tab: 
   $label: 
   $module: 


[ Top ]
useattrib  [line 1324]

void useattrib( string $attribute  )

Includes the file containing the specified attribute

Parameters:
string   $attribute:  The attribute to include in the format "module.attribute". ATK will search in [moduledir]/attributes/ for the attribute file. When no modulename is specified ATK will search for the attribute in [atkdir]/attributes/


[ Top ]
usefilter  [line 1335]

void usefilter( $filter  )
Parameters:
   $filter: 


[ Top ]
userelation  [line 1334]

void userelation( string $relation  )

Includes the file containing the specified relation

Parameters:
string   $relation:  The relation to include in the format "module.relation". ATK will search in [moduledir]/relations/ for the relation file. When no modulename is specified ATK will search for the relation in [atkdir]/relations/


[ Top ]
var_export  [line 1137]

void var_export( $a  )

Adds var_export function to PHP versions older then PHP4.2

for documentation about var_export() see http://www.php.net/manual/en/function.var-export.php

Parameters:
   $a: 


[ Top ]
zendimport  [line 1651]

void zendimport( string $classname  )

Imports a Zend Framework class.

Parameters:
string   $classname:  name of class in zend-format (starting with a Capital)


[ Top ]
_wordwrap  [line 990]

string _wordwrap( string $line  )

Wrap lines, add a newline after 100 characters

Parameters:
string   $line:  the line to add new lines in

API Tags:
Return:  the line with newlines


[ Top ]

Home | About | Contact