multi type support
This commit is contained in:
parent
cf872b330c
commit
769aea44ba
|
@ -34,7 +34,7 @@ $Id$
|
||||||
* @package types
|
* @package types
|
||||||
*/
|
*/
|
||||||
class baseType {
|
class baseType {
|
||||||
|
|
||||||
/** label to create another account */
|
/** label to create another account */
|
||||||
public $LABEL_CREATE_ANOTHER_ACCOUNT;
|
public $LABEL_CREATE_ANOTHER_ACCOUNT;
|
||||||
/** label to return to account list */
|
/** label to return to account list */
|
||||||
|
@ -47,7 +47,7 @@ class baseType {
|
||||||
$this->LABEL_CREATE_ANOTHER_ACCOUNT = _('Create another account');
|
$this->LABEL_CREATE_ANOTHER_ACCOUNT = _('Create another account');
|
||||||
$this->LABEL_BACK_TO_ACCOUNT_LIST = _('Back to account list');
|
$this->LABEL_BACK_TO_ACCOUNT_LIST = _('Back to account list');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the alias name of this account type.
|
* Returns the alias name of this account type.
|
||||||
* This function must be overwritten by the child classes.
|
* This function must be overwritten by the child classes.
|
||||||
|
@ -57,7 +57,7 @@ class baseType {
|
||||||
public function getAlias() {
|
public function getAlias() {
|
||||||
return "baseType";
|
return "baseType";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the description of this account type.
|
* Returns the description of this account type.
|
||||||
* This function must be overwritten by the child classes.
|
* This function must be overwritten by the child classes.
|
||||||
|
@ -67,7 +67,7 @@ class baseType {
|
||||||
public function getDescription() {
|
public function getDescription() {
|
||||||
return "base type";
|
return "base type";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the class name for the list object.
|
* Returns the class name for the list object.
|
||||||
*
|
*
|
||||||
|
@ -76,7 +76,7 @@ class baseType {
|
||||||
public function getListClassName() {
|
public function getListClassName() {
|
||||||
return "lamList";
|
return "lamList";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the default attribute list for this account type.
|
* Returns the default attribute list for this account type.
|
||||||
* This function must be overwritten by the child classes.
|
* This function must be overwritten by the child classes.
|
||||||
|
@ -96,7 +96,7 @@ class baseType {
|
||||||
public function getListAttributeDescriptions() {
|
public function getListAttributeDescriptions() {
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns if entries of this type may be created via file upload.
|
* Returns if entries of this type may be created via file upload.
|
||||||
*
|
*
|
||||||
|
@ -105,7 +105,7 @@ class baseType {
|
||||||
public function supportsFileUpload() {
|
public function supportsFileUpload() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the the title text for the title bar on the new/edit page.
|
* Returns the the title text for the title bar on the new/edit page.
|
||||||
*
|
*
|
||||||
|
@ -128,10 +128,10 @@ class baseType {
|
||||||
public function getTitleBarSubtitle($container) {
|
public function getTitleBarSubtitle($container) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a list of LDAP suffixes for this type.
|
* Returns a list of LDAP suffixes for this type.
|
||||||
*
|
*
|
||||||
* @return array sorted list of possible suffixes for this type.
|
* @return array sorted list of possible suffixes for this type.
|
||||||
*/
|
*/
|
||||||
public function getSuffixList() {
|
public function getSuffixList() {
|
||||||
|
@ -175,25 +175,25 @@ class baseType {
|
||||||
usort($ret, 'compareDN');
|
usort($ret, 'compareDN');
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function is called after the edit page is processed and before the page content is generated.
|
* This function is called after the edit page is processed and before the page content is generated.
|
||||||
* This can be used to run custom handlers after each page processing.
|
* This can be used to run custom handlers after each page processing.
|
||||||
*
|
*
|
||||||
* @param accountContainer $container account container
|
* @param accountContainer $container account container
|
||||||
*/
|
*/
|
||||||
public function runEditPagePostAction(&$container) {
|
public function runEditPagePostAction(&$container) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a list of configuration options.
|
* Returns a list of configuration options.
|
||||||
*
|
*
|
||||||
* The field names are used as keywords to load and save settings.
|
* The field names are used as keywords to load and save settings.
|
||||||
* We recommend to use the type name as prefix for them (e.g. user_someSetting) to avoid naming conflicts.
|
* We recommend to use the type name as prefix for them (e.g. user_someSetting) to avoid naming conflicts.
|
||||||
*
|
*
|
||||||
* @return mixed htmlElement or array of htmlElement
|
* @return mixed htmlElement or array of htmlElement
|
||||||
*
|
*
|
||||||
* @see htmlElement
|
* @see htmlElement
|
||||||
*/
|
*/
|
||||||
public function get_configOptions() {
|
public function get_configOptions() {
|
||||||
|
@ -212,7 +212,11 @@ class baseType {
|
||||||
public function check_configOptions(&$options) {
|
public function check_configOptions(&$options) {
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function supportsMultipleConfigs() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue