PHP Classes

File: examples/orm/Post.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil   PHP Skeleton Framework   examples/orm/Post.php   Download  
File: examples/orm/Post.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Skeleton Framework
Extensive Web application development framework
Author: By
Last change:
Date: 8 years ago
Size: 663 bytes
 

Contents

Class file image Download
<?php

class Post {

    public
$id = '';
    public
$title = '';
    public
$content = '';
    public
$author_first_name;
    public
$author_last_name;

    public function
__construct($id = null, $title = '', $content = '', $author_first_name = '', $author_last_name = '') {
       
$this->id = $id;
       
$this->title = $title;
       
$this->content = $content;
       
$this->author_first_name = $author_first_name;
       
$this->author_last_name = $author_last_name;
    }
   
    public function
getTitle() {
        return
$this->title;
    }

    public function
setTitle($title) {
       
$this->title = $title;
    }
   
    public function
getAuthor() {
        return
$this->author_first_name . ' ' . $this->author_last_name;
    }

}