@lenochware lenochware released this Jun 6, 2018 · 9 commits to master since this release

Assets 2
  • ORM: Added sum() and avg() for Selection
  • Better js date validation
  • Replace recursive for config parameters
  • Added calculated fields
  • Bugfixes
  • PHP 5.4 is required

@lenochware lenochware released this Mar 15, 2018 · 14 commits to master since this release

Assets 2

Mostly bugfixing and finetuning release.

@lenochware lenochware released this Dec 29, 2017 · 28 commits to master since this release

Assets 2
  • Added pclib ORM (beta):
  • Added classes orm\Selection, orm\Model, orm\Relation
  • Added methods ->model() and ->selection() into Controller class
  • Added method Grid->setSelection(orm\Selection $sel)
  • Added template tag attribute confirm: link ln confirm "confirm_message"
  • Added including of templates: include INCL1 file "template.tpl"
  • Added default_print "div" into default form template
  • Tpl->addTag() will accept attribute 'after': input I10 ... after "I5"
  • Various improvements and bugfixes

@lenochware lenochware released this Apr 18, 2017 · 91 commits to master since this release

Assets 2
  • Added Auth->verifyRemote config param
  • Added Form->addHidden(), Form->preparedValues(), removed Form->prepare()
  • Breadcrumb navigator can be generated as UL
  • Various improvements and bugfixes

@lenochware lenochware released this Jan 17, 2017 · 107 commits to master since this release

Assets 2
  • Added classes TplParser, parser code moved from Tpl to TplParser
  • Added classes Validator, BaseValidator
  • Removed class FormValidator, Form uses Validator for validation
  • Added validation rules url, range, integer, minlength, time
  • Added class FileStorage
  • Added attribute 'multiple' for input file (multiple file upload support)
  • Added template attribute 'escape' - it escapes html tags from output
  • Template attribute 'datasource' can be callable (or route path)
  • Added attribute 'confirm' to button tag
  • Added composer support: use "composer require lenochware/pclib" for installation
  • various bugfixes and small changes

@lenochware lenochware released this Nov 10, 2016 · 158 commits to master since this release

Assets 2
  • Added parameters to error.tpl, better message in errorlog
  • Added class TemplateFactory for building forms and grids from db-columns
  • Templates assets/def__.tpl renamed to assets/default-_.tpl and updated
  • Tpl->create() uses TemplateFactory now
  • Added _tvar template variables
  • Added methods Grid->exportCsv() and Grid->getExportCsv()
  • Removed function ifnot()
  • Added config parameter 'pclib.security'
  • Changed form-upload fileName format
  • GridForm fixed and updated
  • Bugfixes

@lenochware lenochware released this Sep 12, 2016 · 173 commits to master since this release

Assets 2
  • Pclib autentification and authorisation system rewritten
  • Added support of bcypt hash /PHP 5.5 password_hash() function/ - 'md5' is default
  • All auth config parameters moved to new 'pclib.auth' key
  • Class AuthUser rewritten and cleaned up
  • Auth->getUser() now return AuthUser object
  • Auth console code separated to its own class AuthConsole
  • Http autentification moved to its own class AuthHttp
  • Added element 'navigator' (breadcrumb navigator) to layout template
  • Breadcrumb navigator code moved from class App to class Layout
  • Added parameter 'table' (database table) to form template header
  • pclib.js: Validator refactoring
    Added events onAjaxComplete, onValidate, methods validateForm(), showErrors()
  • Pagination code moved to new class GridPager. Grid->pager now contains this class.
  • dump() output improved
  • App->make() replaced with newController(), newModel()
  • Bugfixes

@lenochware lenochware released this Mar 23, 2016 · 207 commits to master since this release

Assets 2
  • Added namespace 'pclib'
  • As alternative, you can use non-namespaced version of class name with 'PC' prefix
  • Backward compatibility is disabled by default.
  • renamed: Auth_User -> pclib\User, App_Controller -> pclib\Controller, App_Layout -> pclib\Layout
  • renamed: App->enviroment, App->enviromentIp -> App->environment, App->environmentIp
  • Added function App->make(), removed App->getController()
  • Bugfixes

@lenochware lenochware released this Feb 17, 2016 · 220 commits to master since this release

Assets 2
  • Improved App->message(), App->errors(): You can use individual css-class
  • Layout template: message container must be declared as 'messages PRECONTENT'
  • Added App->paths, App->httpError(), App->router, App->enviromentIp()
  • Added Tpl->disable()
  • Added classes Router, Action
  • Added Request->clientIp(), Request->serverIp()
  • Routing code rewritten and moved from App to Router
  • App->enviroment rewritten, now it is based on server IP address
  • Exceptions moved to system/exceptions.php
  • various bugfixes

@lenochware lenochware released this Nov 5, 2015 · 253 commits to master since this release

Assets 2

Initial release