
Untitled
By: a guest on
May 11th, 2012 | syntax:
None | size: 0.74 KB | hits: 18 | expires: Never
<?php
namespace OmegaTech\System;
/** @Entity */
class Page extends Resource {
/**
* @Column(length=50, unique=true)
*/
public $path;
/**
* @OneToMany(targetEntity="Page", mappedBy="parent")
*/
private $children;
/**
* @ManyToOne(targetEntity="Page", inversedBy="children")
*/
private $parent;
/**
* @Column(type="text")
*/
public $source;
/**
* @Column(type="boolean")
*/
public $public;
/**
* @Column(type="boolean")
*/
public $enabled;
// Oh my god, domain knowledge!
public static function dispatch($entityManager, $requestedPath) {
// Debugging.
print_r($requestedPath);
// Query the database for the URL.
return(true);
return(false);
}
}
?>