示例#1
0
 public function __construct($id)
 {
     parent::__construct();
     $this->id = $id;
     $this->setPath($id);
     $this->grantFunction = array($this, "isGranted");
 }
 public function __construct(Router $router, FlattenRouteManager $flattenRouteManager, $data = null)
 {
     parent::__construct();
     $this->router = $router;
     $this->flattenRouteManager = $flattenRouteManager;
     if ($data) {
         $this->buildArray($data);
     }
 }