[uml] PageController

Webel module:

Package/Namespace: 

UML element type:

OOE stereotypes:

Relationships (inverse)
UML Diagram
Click on the UML diagram to view it in a lightbox image viewer. You may then zoom in (or just open the image in a new web browser tab using the Download Original link to view large diagrams).

UML modelling domain:

This element, external to the educational OOE = Object Oriented Examples = One Of Each module, is not reverse engineered from code and has minimal UML modelling.

From the Page Controller project.

Code examples
/**
 * @file
 * Contains a PageController.
 *
 * @copyright Copyright(c) 2013 Chris Skene
 * @license GPL v2 http://www.fsf.org/licensing/licenses/gpl.html
 * @author Chris Skene chris at xtfer dot com
 */
 
namespace Drupal\page_controller\Controller;
 
/**
 * Class PageController
 *
 * @package Drupal\dnsw_product\Pages
 */
class PageController {
 
  /**
   * Static factory function.
   */
  static public function createPage() {
 
    $args = func_get_args();
    $controller_name = array_shift($args);
    $method = array_shift($args);
 
    if (class_exists($controller_name)) {
      $controller = new $controller_name();
 
      return call_user_func_array(array($controller, $method), $args);
    }
 
    throw new \Exception('Invalid Page Controller');
  }
}
Visit also