Documentation TYPO3 par Ameos

freesite_admin Class Reference

List of all members.

Public Member Functions

 freesite_admin ()
 genTree ($theID, $depthData)
 doesExist ($table, $field, $value)
 getInputData ($fieldName, $hsc=0)
 isCorrect ($fieldName)
 cleanFileName ($fileName)
 rmSlash ($string)
 rmDoubleSlash ($string)
 getSubpart ($content, $marker)
 substituteSubpart ($content, $marker, $subpartContent, $recursive=1)
 insertInDatabase ($table, $data, $uid=0)
 main ()
 verifyData ()
 isReady ()
 enteringData ()
 displayDataForms ()
 previewData ()
 creatingData ()
 startCreate ()
 setNoDomainUrl ()
 notifyAdmin ()
 addUserAndGroup ()
 createDirs ()
 createVirtualDir ()
 copyDummyPages ($src_uid, $new_BE_USER)
 setGroupMountPoint ($root_page_pid)
 setRootPageProperties ($root_page_pid)
 getRootPageTitle ()
 createDomainRecord ($root_page_pid, $virtualDir)
 createTemplateRecord ($root_page_pid, $title)
 createdOutput ($domainData)
 sendNotifyEmailToUser ()
 testHeader ($label)
 getTemplateHTML ($uid, $title, $template)
 getPagesHTML ($uid, $title, $template)
 printSelect ($theType)
 displayExample ($theOutput)
 getTemplateDetails ($category)
 initialize_editor ($pageId, $template_uid=0)

Public Attributes

 $data = array()
 $check = array()
 $fieldsArray = array()
 $HIDDEN_FIELDS = ""
 $ALL_OK = ""
 $verificationOK = ""
 $verificationCode = ""
 $noDomainURL = ""
 $groupTemplate = ""
 $groupGeneral = ""
 $newsite_page = ""
 $groupData = array()
 $userData = array()
 $user_uid = ""
 $userGroup_uid = ""
 $sysConfig
 $backPath = ""
 $genTree_HTML = ""

Detailed Description

Class: Freesite

Author:
Kasper Skårhøj <kasperYYYY@typo3.com>

Definition at line 33 of file class.freesite.php.


Constructor & Destructor Documentation

freesite_admin::freesite_admin  ) 
 

Constructor. Checks if the module is allowed to be users without backend login.

Definition at line 143 of file class.freesite.php.

References t3lib_BEfunc::typo3PrintError().


Member Function Documentation

freesite_admin::addUserAndGroup  ) 
 

Creating a be_user and group based on ->groupData and ->userData

Definition at line 928 of file class.freesite.php.

References insertInDatabase(), and testHeader().

Referenced by startCreate().

freesite_admin::cleanFileName fileName  ) 
 

Cleans up a filename

Definition at line 230 of file class.freesite.php.

Referenced by verifyData().

freesite_admin::copyDummyPages src_uid,
new_BE_USER
 

Copying the dummy page structure.

Definition at line 1008 of file class.freesite.php.

References t3lib_div::makeInstance().

Referenced by startCreate().

freesite_admin::createDirs  ) 
 

Creating directories for users/groups

Definition at line 946 of file class.freesite.php.

References t3lib_div::isFirstPartOfStr(), and rmDoubleSlash().

Referenced by startCreate().

freesite_admin::createDomainRecord root_page_pid,
virtualDir
 

Create Domain Record

Definition at line 1074 of file class.freesite.php.

References doesExist(), insertInDatabase(), rmSlash(), and testHeader().

Referenced by startCreate().

freesite_admin::createdOutput domainData  ) 
 

Create output to browser for created screen.

Definition at line 1144 of file class.freesite.php.

References t3lib_div::getURL().

Referenced by startCreate().

freesite_admin::createTemplateRecord root_page_pid,
title
 

Create Template Record

Definition at line 1104 of file class.freesite.php.

References insertInDatabase(), and testHeader().

Referenced by startCreate().

freesite_admin::createVirtualDir  ) 
 

Creating virtual directory

Definition at line 978 of file class.freesite.php.

Referenced by startCreate().

freesite_admin::displayDataForms  ) 
 

Display data

Definition at line 577 of file class.freesite.php.

References getInputData(), isCorrect(), and t3lib_div::loadTCA().

Referenced by enteringData().

freesite_admin::doesExist table,
field,
value
 

Checks if record exists.

Definition at line 200 of file class.freesite.php.

Referenced by createDomainRecord(), creatingData(), startCreate(), and verifyData().

freesite_admin::enteringData  ) 
 

Entering data

Definition at line 515 of file class.freesite.php.

References t3lib_div::_POST(), displayDataForms(), genTree(), t3lib_div::getURL(), and previewData().

Referenced by main().

freesite_admin::genTree theID,
depthData
 

Generating tree.

Definition at line 178 of file class.freesite.php.

Referenced by enteringData().

freesite_admin::getRootPageTitle  ) 
 

Returning the root page title

Definition at line 1067 of file class.freesite.php.

Referenced by setRootPageProperties(), and startCreate().

freesite_admin::getSubpart content,
marker
 

Get subpart (template)

Definition at line 254 of file class.freesite.php.

Referenced by printSelect().

freesite_admin::insertInDatabase table,
data,
uid = 0
 

Inserts into database (not with TCE!) and updates if uid is set.

Definition at line 314 of file class.freesite.php.

References $data.

Referenced by addUserAndGroup(), createDomainRecord(), createTemplateRecord(), setGroupMountPoint(), and setRootPageProperties().

freesite_admin::isCorrect fieldName  ) 
 

Returns 'not correct' html-code

Definition at line 221 of file class.freesite.php.

Referenced by displayDataForms().

freesite_admin::isReady  ) 
 

Checking if all data is verified and if the verification code was properly entered

Definition at line 479 of file class.freesite.php.

References t3lib_div::_POST().

Referenced by main().

freesite_admin::main  ) 
 

MAIN FUNCTION of the freesite module.

Definition at line 368 of file class.freesite.php.

References t3lib_div::_POST(), creatingData(), enteringData(), isReady(), and verifyData().

freesite_admin::notifyAdmin  ) 
 

Notification email to administrator:

Definition at line 913 of file class.freesite.php.

Referenced by startCreate().

freesite_admin::previewData  ) 
 

Preview data

Definition at line 697 of file class.freesite.php.

References t3lib_div::getIndpEnv().

Referenced by enteringData().

freesite_admin::rmDoubleSlash string  ) 
 

Removes double slash

Definition at line 246 of file class.freesite.php.

Referenced by createDirs(), and setNoDomainUrl().

freesite_admin::rmSlash string  ) 
 

Removes single slash in the end of string

Definition at line 239 of file class.freesite.php.

Referenced by createDomainRecord().

freesite_admin::sendNotifyEmailToUser  ) 
 

Notify user

Definition at line 1171 of file class.freesite.php.

Referenced by startCreate().

freesite_admin::setGroupMountPoint root_page_pid  ) 
 

Set group mount point

Definition at line 1039 of file class.freesite.php.

References insertInDatabase(), and testHeader().

Referenced by startCreate().

freesite_admin::setNoDomainUrl  ) 
 

Finding default url (prepended with slash)

Definition at line 900 of file class.freesite.php.

References t3lib_div::getIndpEnv(), and rmDoubleSlash().

Referenced by startCreate().

freesite_admin::setRootPageProperties root_page_pid  ) 
 

Setting the root page title and other things.

Definition at line 1054 of file class.freesite.php.

References getRootPageTitle(), insertInDatabase(), and testHeader().

Referenced by startCreate().

freesite_admin::startCreate  ) 
 

Start creating the new site.

Definition at line 858 of file class.freesite.php.

References addUserAndGroup(), copyDummyPages(), createDirs(), createDomainRecord(), createdOutput(), createTemplateRecord(), createVirtualDir(), doesExist(), getRootPageTitle(), t3lib_div::makeInstance(), notifyAdmin(), sendNotifyEmailToUser(), setGroupMountPoint(), setNoDomainUrl(), and setRootPageProperties().

Referenced by creatingData().

freesite_admin::substituteSubpart content,
marker,
subpartContent,
recursive = 1
 

Substitute subpart (template)

Definition at line 275 of file class.freesite.php.

Referenced by printSelect().

freesite_admin::testHeader label  ) 
 

Printing test header

Definition at line 1189 of file class.freesite.php.

Referenced by addUserAndGroup(), createDomainRecord(), createTemplateRecord(), setGroupMountPoint(), and setRootPageProperties().

freesite_admin::verifyData  ) 
 

Verifies incoming data

Definition at line 395 of file class.freesite.php.

References cleanFileName(), and doesExist().

Referenced by main().


The documentation for this class was generated from the following file:


Généré par TYPO3 Ameos avec  doxygen 1.4.6