GBContent::__construct PHP Method

__construct() public method

# GBDateTime
public __construct ( $name = null, $id = null )
    function __construct($name = null, $id = null)
    {
        $this->name = $name;
        $this->id = $id;
    }

Usage Example

Example #1
0
 function __construct($name = null, $id = null, $cachenamePrefix = null, $comments = null)
 {
     parent::__construct($name, $id);
     $this->cachenamePrefix = $cachenamePrefix;
     if ($comments !== null) {
         $this->comments = $comments;
     }
 }