2017 © Pedro Peláez
 

library cms_api

SamsonCMS API module

image

samsonos/cms_api

SamsonCMS API module

  • Thursday, February 18, 2016
  • by samsonos
  • Repository
  • 2 Watchers
  • 2 Stars
  • 3,999 Installations
  • PHP
  • 6 Dependents
  • 0 Suggesters
  • 7 Forks
  • 3 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

SamsonCMS API

Latest Stable Version Build Status Coverage Status Code Climate Total Downloads, (*1)

This is core classes to interact with SamsonCMS database structure, (*2)

Read module documentation: * Material collection, (*3)

Class Filter

This class has static methods to work with filter table. They are: * createFilter() method allows you to create new row in filter table; * resetFilters() method generates new filters from materialfield table. It takes only records which have filter type. Filter type can de set by CMS or directly in field table., (*4)

Also it has inner collection of 'filter' class objects and some methods to work with them. * Method add() takes filter identifier as parameter and adds this filter to the collection. * getFiltersByField() method has 1 input value: filtered field identifier. It returns array of filters related to this field. * performFilters() method searches for suitable results, performing all filters which are in collection. The result is array of materials, it can be get by setting first parameter of this function. Other parameters are: * Structures which result materials should belong to; * External handler name. It will be called before SQL query will execute. * External handler parameters array, this parameters will be added to query, which is first parameter of external handler function, and filters array, which is second parameter. That's the main info about this class!, (*5)

The Versions

18/02 2016

dev-master

9999999-dev http://samsonos.com/

SamsonCMS API module

  Sources   Download

Open Software License (OSL) v 3.0

The Requires

 

The Development Requires

by Vitaly Iegorov
by Nikita Kotenko

21/07 2015

1.0.1

1.0.1.0 http://samsonos.com/

SamsonCMS API module

  Sources   Download

Open Software License (OSL) v 3.0

The Requires

 

The Development Requires

by Vitaly Iegorov
by Nikita Kotenko