mirror of
https://github.com/e107inc/e107.git
synced 2025-08-13 01:54:12 +02:00
AdminUI: userclass default value may now be set using the userclass name.
This commit is contained in:
@@ -969,12 +969,14 @@ class user_class
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Look up class ID for a given class name
|
||||
* @param string $name - class name
|
||||
* @return integer|boolean FALSE if not found, else user class ID
|
||||
*/
|
||||
public function ucGetClassIDFromName($name)
|
||||
public function getID($name)
|
||||
{
|
||||
$this->readTree();
|
||||
// We have all the info - can just search the array
|
||||
@@ -990,6 +992,19 @@ class user_class
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* BC Alias of getID();
|
||||
* @param $name
|
||||
* @return mixed
|
||||
*/
|
||||
public function ucGetClassIDFromName($name)
|
||||
{
|
||||
return $this->getId($name);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Utility to remove a specified class ID from the default comma-separated list
|
||||
* Optional conversion to array of classes
|
||||
|
Reference in New Issue
Block a user