[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/competency/classes/ -> competency_rule.php (summary)

Competency rule base.

Copyright: 2015 Frédéric Massart - FMCorz.net
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 107 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions

  __construct()
  get_config()
  get_name()
  migrate_config()

Functions
Functions that are not part of a class:

__construct(competency $competency)   X-Ref
Constructor.

param: competency $competency The competency.

get_config()   X-Ref
Get the rule config.

return: mixed

get_name()   X-Ref
The name of the rule.

return: lang_string

migrate_config($config, $mappings)   X-Ref
Migrate rule config from one set of competencies to another.

Exceptions should be thrown when the migration can not be performed.

param: string $config Original config rule of a competency.
param: array $mappings Array that matches the original competency IDs with the new competencies objects.
return: string New configuration.



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1