array( 'Title' => "Title", 'Body' => "Body", 'Slug' => "Slug" ), 'numeric' => array( 'Views' => "Views", 'AuthorId' => "UserId" ), 'timestamp' => array( "PostedDate" => "Posted", "LastEditedDate" => "LastEdited" ), 'boolean' => array( "Visible" => "Visible" ), 'user' => array( "Author" => "UserId" ) ); public function GenerateSlug() { return strtolower( preg_replace("/[^a-zA-Z0-9-]/", "", preg_replace("/[ =_+]/", "-", $this->uTitle ))); } }