2017 © Pedro Peláez
 

library cdatabasemodel

Database content to Anax-MVC

image

chp/cdatabasemodel

Database content to Anax-MVC

  • Tuesday, October 3, 2017
  • by Chibi86
  • Repository
  • 1 Watchers
  • 0 Stars
  • 81 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

CDatabaseModel for ANAX-MVC

A model for database-methods, made with guidelines by https://dbwebb.se/kunskap/skapa-basklasser-for-databasdrivna-modeller-i-anax-mvc (Swedish)., (*1)

Added extra:

Limit: $this->[your-class]->limit(1), (*2)

Offset: $this->[your-class]->offset(1), (*3)

Count all: $this->[your-class]->countAll(), (*4)

Find all with paging support: $this->[your-class]->findAll($page, $perPage), (*5)


Made by Rasmus Berg, rasmus.berg@chibidesign.se, (*6)

License

This software is free software and carries a MIT license., (*7)

Use of external libraries

The following external modules are excluded but will be needed for run this classes., (*8)

Anax-MVC (Get this one first)

  • Github: https://github.com/mosbth/Anax-MVC
  • Version: v2.0.x or later
  • License: MIT license

Mos/CDatabase

  • Github: https://github.com/mosbth/cdatabase/
  • Version: v0.1.1*
  • License: MIT license

Install instructions

1. First you will need to install the other modules (if not got theim already).

2. The easiest way to install this is using composer:

Write this in your composer:, (*9)

    "chp/cdatabasemodel": "dev-master"

History

History for CDatabaseModel for ANAX-MVC

v2.0 (2017-10-03) * Added: Paging support to Find all method (ex. $this->users->findAll($page, $perPage)) * Added: Count all method (ex. $this->users->countAll()) * Bugfix: User object was send with properties * Bugfix: Update method never save id, when object was send for be edit, (*10)

v1.0.1 (2017-03-09) * Update: Remove short php-tag * Bugfix: Fix wrong namespace, (*11)

v1.0.0 (2016-11-20), (*12)

  • First release on Github.
Copyright (c) 2016-2017 Rasmus Berg, rasmus.berg@chibidesign.se

The Versions

03/10 2017

dev-master

9999999-dev http://chibidesign.se

Database content to Anax-MVC

  Sources   Download

MIT

The Requires

  • php >=5.4

 

database education anax-mvc databasemodel

03/10 2017

v2.0

2.0.0.0 http://chibidesign.se

Database content to Anax-MVC

  Sources   Download

MIT

The Requires

  • php >=5.4

 

database education anax-mvc databasemodel

12/03 2017

v1.0.1

1.0.1.0 http://chibidesign.se

Database content to Anax-MVC

  Sources   Download

MIT

The Requires

  • php >=5.4

 

database education anax-mvc databasemodel

27/01 2017

v1.0.0

1.0.0.0 http://chibidesign.se

Database content to Anax-MVC

  Sources   Download

MIT

The Requires

  • php >=5.4

 

database education anax-mvc databasemodel