Skip to content

Commit

Permalink
Core functions and Doc of Mappiamo updates
Browse files Browse the repository at this point in the history
  • Loading branch information
vivimpresa committed Jul 5, 2017
1 parent e1c4cf7 commit 7cfd041
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions doc/manual_en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -606,25 +606,19 @@ If you want insert custom type you have to follow these steps:

example of class.<newtype>.php::

<?php
<?php
class M_Newtype extends M_Post {

protected $type = ‘newtype’;
protected $kind;
protected $start = NULL;
protected $end = NULL;

public function __construct($id = NULL) {if ($id) {$this->read($id);} }

public function get_start() {return $this->start;}

public function get_end() {return $this->end; }

public function set_start($value) {$this->start = strval($value);}

public function set_end($value) {$this->end = strval($value);}
protected $type = ‘newtype’;
protected $kind;
protected $start = NULL;
protected $end = NULL;
public function __construct($id = NULL) {if ($id) {$this->read($id);} }
public function get_start() {return $this->start;}
public function get_end() {return $this->end; }
public function set_start($value) {$this->start = strval($value);}
public function set_end($value) {$this->end = strval($value);}
}
?>
?>


Call a model from controller
Expand Down

0 comments on commit 7cfd041

Please sign in to comment.