• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

PHP [Modern AAC] Documentation

Paxton

Banned User
Joined
Feb 23, 2008
Messages
4,110
Reaction score
48
Location
London, UK
The Modern AAC is coming soon, and it comes with many new features especially for developers and there has to be some documentation.

I'm planning to open Modern AAC Portal with all tutorials but not yet so I planned to create a thread with all functions so you can search it quickly.

This will include documentations from all of the used libraries + own libraries.

The main libraries Modern AAC is using are:


CodeIgniter URLs
Controllers
Reserved Names
Views
Models
Helper Functions
Plugins
Using CodeIgniter Libraries
Creating Libraries
Creating Core System Classes
Hooks
Auto-loading Resources
Common Functions
Scaffolding
URI Routing
Error Handling
Web Page Caching
Profiling Your Application
Managing your Applications
Alternate PHP Syntax for View Files
Security
Style Guide

Classes within CI

Benchmarking Class
Calendaring Class
Shopping Cart Class
Config Class
The Database Class
Email Class
Encryption Class
File Uploading Class
Form Validation
FTP Class
HTML Table Class
Image Manipulation Class
Loader Class
Language Class
Output Class
Pagination Class
Session Class
Trackback Class
Template Parser Class (Please note we use Smarty system)
Typography Class
Unit Testing Class
URI Class
User Agent Class
XML-RPC and XML-RPC Server Classes
Zip Encoding Class

Helpers

Array Helper
Compatibility Helper
Cookie Helper
Date Helper
Directory Helper
Download Helper
Email Helper
File Helper
Form Helper
HTML Helper
Inflector Helper
Language Helper
Number Helper
Path Helper
Security Helper
Smiley Helper
String Helper
Text Helper
Typography Helper
URL Helper
XML Helper

Smarty
Smarty

IDE
PHP:
$ide->requireLogin();
If user is not logged in, redirect to the login page.

PHP:
$ide->redirect(ADDRESS);
Redirect to specified address, if second argument is passed (int) it will redirect after that time in seconds, for example:
PHP:
$ide->redirect("http://google.com", 2);

PHP:
$ide->isLogged();
Returns boolean value if user is logged or not.

PHP:
$ide->dirList(ADDRESS);
Returns an array of folders within passed address.

PHP:
$ide->isAdmin();
Returns boolean value if currently logged user is an admin or not.

PHP:
$ide->loadInjections(INJECTIONS);
Loads all injections (Plugin like) from specified folder, throws exception if folder doesn't exists so it must be caught.

PHP:
$ide->requireAdmin();
Sends to login page if currently logged user is not an admin.

PHP:
$ide->system_stop();
Stops loading the output, it does not stop the whole script, it is required if controller is used in AJAX mode.

PHP:
$ide->criticalRedirect();
It redirects user and exit the script to run after, it is neccessary if any output has been sent to the browser, note this redirections takes some time.

PHP:
$ide->pageAccess();
Returns currently logged user's page access

PHP:
$ide->loggedAccount();
Returns name of currently logged account

PHP:
$ide->loggedAccountId();
Returns ID of currently logged account


List of classes dumped while on index.php, might be useful

HTML:
Exception
ErrorException
Closure
COMPersistHelper
com_exception
com_safearray_proxy
variant
com
dotnet
DateTime
DateTimeZone
DateInterval
DatePeriod
ReflectionException
Reflection
ReflectionFunctionAbstract
ReflectionFunction
ReflectionParameter
ReflectionMethod
ReflectionClass
ReflectionObject
ReflectionProperty
ReflectionExtension
LogicException
BadFunctionCallException
BadMethodCallException
DomainException
InvalidArgumentException
LengthException
OutOfRangeException
RuntimeException
OutOfBoundsException
OverflowException
RangeException
UnderflowException
UnexpectedValueException
RecursiveIteratorIterator
IteratorIterator
FilterIterator
RecursiveFilterIterator
ParentIterator
LimitIterator
CachingIterator
RecursiveCachingIterator
NoRewindIterator
AppendIterator
InfiniteIterator
RegexIterator
RecursiveRegexIterator
EmptyIterator
RecursiveTreeIterator
ArrayObject
ArrayIterator
RecursiveArrayIterator
SplFileInfo
DirectoryIterator
FilesystemIterator
RecursiveDirectoryIterator
GlobIterator
SplFileObject
SplTempFileObject
SplDoublyLinkedList
SplQueue
SplStack
SplHeap
SplMinHeap
SplMaxHeap
SplPriorityQueue
SplFixedArray
SplObjectStorage
MultipleIterator
__PHP_Incomplete_Class
php_user_filter
Directory
LibXMLError
DOMException
DOMStringList
DOMNameList
DOMImplementationList
DOMImplementationSource
DOMImplementation
DOMNode
DOMNameSpaceNode
DOMDocumentFragment
DOMDocument
DOMNodeList
DOMNamedNodeMap
DOMCharacterData
DOMAttr
DOMElement
DOMText
DOMComment
DOMTypeinfo
DOMUserDataHandler
DOMDomError
DOMErrorHandler
DOMLocator
DOMConfiguration
DOMCdataSection
DOMDocumentType
DOMNotation
DOMEntity
DOMEntityReference
DOMProcessingInstruction
DOMStringExtend
DOMXPath
SimpleXMLElement
SimpleXMLIterator
XMLReader
XMLWriter
XSLTProcessor
PharException
Phar
PharData
PharFileInfo
finfo
mysqli_sql_exception
mysqli_driver
mysqli
mysqli_warning
mysqli_result
mysqli_stmt
PDOException
PDO
PDOStatement
PDORow
SoapClient
SoapVar
SoapServer
SoapFault
SoapParam
SoapHeader
SQLiteDatabase
SQLiteResult
SQLiteUnbuffered
SQLiteException
SQLite3
SQLite3Stmt
SQLite3Result
ZipArchive
SWFShape
SWFFill
SWFGradient
SWFBitmap
SWFText
SWFTextField
SWFFont
SWFDisplayItem
SWFMovie
SWFButton
SWFAction
SWFMorph
SWFMovieClip
SWFSprite
SWFSound
SWFFontChar
SWFButtonRecord
SWFSoundInstance
SWFVideoStream
SWFBinaryData
SWFInitAction
SWFPrebuiltClip
SWFSoundStream
SWFFilter
SWFFilterMatrix
SWFShadow
SWFBlur
SWFCXform
SWFMatrix
SWFInput
SWFBrowserFont
SWFFontCollection
SWFCharacter
PDFlibException
PDFlib
Smarty_Internal_Data
Smarty_Data
Smarty_Variable
Undefined_Smarty_Variable
Smarty
IDE
POT
CI_Exceptions
CI_Benchmark
CI_Hooks
CI_Config
CI_URI
CI_Router
CI_Output
CI_Input
CI_Language
CI_Base
Controller
Home
CI_Loader
Model
home_model
CI_DB_driver
CI_DB_active_record
CI_DB
CI_DB_mysql_driver
CI_DB_result
CI_DB_mysql_result
OTS_Base_DB
OTS_DB_MySQL
Smarty_Internal_Template
Smarty_Template
Smarty_Internal_Resource_File

Basic functions, scope is global from index.php.

HTML:
escape
smartyautoload
isvalidemail
wordwrapignorehtml
error
alert
success
truncatestring
ago
alertbox
requirelogin
unix_timestamp
loadconfig
connection
bugtracker_getpriority
bugtracker_getcategory
bugtracker_getpriorityimage
getcontent
decodestring
getvocationname
is_php
is_really_writable
load_class
instantiate_class
get_config
config_item
show_error
show_404
log_message
set_status_header
_exception_handler
get_instance
db
site_url
base_url
current_url
uri_string
index_page
anchor
anchor_popup
mailto
safe_mailto
auto_link
prep_url
url_title
redirect
_parse_attributes

Interfaces, global scope from index.php

Traversable
IteratorAggregate
Iterator
ArrayAccess
Serializable
Reflector
RecursiveIterator
OuterIterator
Countable
SeekableIterator
SplObserver
SplSubject
IOTS_DB

If everything would be counted there would be hundreds of functions for you to use.
 
Last edited:
totally noob question here, How to use the forum in your Modern AAC and how to become an adminstrator there?
 
totally noob question here, How to use the forum in your Modern AAC and how to become an adminstrator there?

You need to be logged on account with page access higher than 5 in database.

edit docs update.
 
You need to be logged on account with page access higher than 5 in database.

edit docs update.

So I go on phpmyadmin go my account and page_access there change to 5?

Is 5 the highest you can be I mean as administrator?
 
You can set that in config.php, if u r 5 by default, then you are administator.
 
Back
Top