Example #1
0
 function __construct()
 {
     if (null === $this->tablename) {
         throw new Exception(__('orm tablename is not declared.'));
     }
     parent::__construct();
 }
Example #2
0
 function __construct()
 {
     if (null === $this->api_url) {
         throw new \Exception(\__('orm api url is not declared.'));
     }
     parent::__construct();
 }
Example #3
0
 function __construct($api_url = null)
 {
     if (null !== $api_url) {
         $this->api_url = $api_url;
     }
     if (null === $this->api_url) {
         throw new Exception(__('orm api_url is not declared.'));
     }
     parent::__construct();
 }
Example #4
0
 function __construct($table_name = null, $database = null)
 {
     if (null !== $table_name) {
         $this->tablename = $table_name;
     }
     if (null !== $database) {
         $this->database = $database;
     }
     if (null === $this->tablename) {
         throw new Exception(__('ORM :orm tablename is not declared.', array(':orm' => get_class($this))));
     }
     parent::__construct();
 }