\ProfileController
Basic Profile Area Controller.
Synopsis
class ProfileController
extends Controller
implements
PermissionProvider
{
- // members
- private static string $menu_icon = '<i class="fa fa-user"></i>';
- private static string $menu_title = 'Profile';
- private static string $url_segment = 'profile';
- private static string $template_main = 'ProfileController';
- private static array $url_handlers = ;
- private static array $allowed_actions = ;
- private static array $requirements_css = ;
- private static array $requirements_javascript = ;
- protected $member;
- protected $response_controller;
- protected static $profile_classes;
- // methods
- public void init()
- public void providePermissions()
- public static void canView()
- public void getMember()
- public void setMember()
- public void Link()
- public static void join_links()
- public void Title()
- public void Icon()
- public HTMLText ProfileArea()
- public void getProfileClass()
- public static ArrayList ProfileMenu()
- public string MetaTags()
- public SS_HTTPRequest handleController()
- public bool setupVariables()
- protected void handleAction()
- private static array get_profile_classes()
- protected bool hasProfileController()
- public Page_Controller getResponseController()
- public void LayoutAjax()
- public void index()
- public string render()
- public void httpError()
- public void MainProfileClass()
- public void CurrProfileClass()
Hierarchy
Extends
- Controller
Implements
- PermissionProvider
Members
private
- $allowed_actions
- $requirements_css
- $requirements_javascript
- $template_main
- $url_handlers
- $url_segment
protected
- $member
- $profile_classes
- $response_controller
Methods
private
- get_profile_classes() — Gets ProfileController sub-classes and except some of them hidden by hide_ancestor.
protected
- handleAction()
- hasProfileController() — Checks if Profile Controller exists.
public
- CurrProfileClass()
- Icon()
- LayoutAjax()
- Link()
- MainProfileClass()
- MetaTags() — Blocks indexing of profile areas.
- ProfileArea() — Gets Profile Area Layout.
- ProfileMenu() — Gets Profile Menu.
- Title()
- canView()
- getMember()
- getProfileClass()
- getResponseController() — Prepare the controller for handling the response to this request.
- handleController() — Handles requests by Profile Controller.
- httpError() — Throws a HTTP error response encased in a {@link SS_HTTPResponse_Exception}, which is later caught in {@link RequestHandler::handleAction()} and returned to the user.
- index()
- init()
- join_links()
- providePermissions()
- render() — Render the current controller with the templates determined by {@link getViewer()}.
- setMember()
- setupVariables() — Let's you check params and the other variables for example ProfileCRUD checks managed_models and IDs being set if request has ModelClass param it shall be manageable if it's edit or view request item with specified ID shall exist.