Public Member Functions | |
setForcedGeneration ($orly) | |
isForcedGeneration () | |
setDryRun ($dry) | |
isDryRun () | |
setWithEnumerationRefIntegrityCheck ($orly) | |
load ($metafile, $generate=true) | |
buildClasses () | |
buildSchema () | |
buildSchemaChanges () | |
buildContainers () | |
checkIntegrity () | |
checkForStaleFiles ($drop=false) | |
getClassByName ($name) | |
getClassList () | |
setOutput (MetaOutput $out) | |
getOutput () | |
Static Public Member Functions | |
static | me () |
static | out () |
Private Member Functions | |
checkDirectory ($directory, $preStrip, $postStrip, $drop=false) | |
addSource (SimpleXMLElement $source) | |
makeProperty ($name, $type, MetaClass $class, $size) | |
guessPattern ($name) | |
checkSanity (MetaClass $class) | |
checkRecursion (MetaClassProperty $property, MetaClass $holder, $paths=array()) | |
processIncludes (SimpleXMLElement $xml, $metafile) | |
processClasses (SimpleXMLElement $xml, $metafile, $generate) | |
loadXml ($metafile, $generate) | |
checkClassSanity (MetaClass $class, ReflectionClass $info) | |
checkEnumerationReferentialIntegrity (Enumeration $enumeration, $tableName) | |
Private Attributes | |
$out = null | |
$classes = array() | |
$sources = array() | |
$liaisons = array() | |
$references = array() | |
$defaultSource = null | |
$forcedGeneration = false | |
$dryRun = false | |
$checkEnumerationRefIntegrity = false |
Definition at line 15 of file MetaConfiguration.class.php.
MetaConfiguration::addSource | ( | SimpleXMLElement $ | source | ) | [private] |
Definition at line 743 of file MetaConfiguration.class.php.
References Assert::isFalse().
MetaConfiguration::buildClasses | ( | ) |
Definition at line 216 of file MetaConfiguration.class.php.
References $out, and getOutput().
MetaConfiguration::buildContainers | ( | ) |
Definition at line 371 of file MetaConfiguration.class.php.
MetaConfiguration::buildSchema | ( | ) |
Definition at line 243 of file MetaConfiguration.class.php.
References $out, SchemaBuilder::buildRelations(), SchemaBuilder::buildTable(), BasePattern::dumpFile(), SchemaBuilder::getHead(), getOutput(), and Format::indentize().
MetaConfiguration::buildSchemaChanges | ( | ) |
Definition at line 297 of file MetaConfiguration.class.php.
References $out, MetaClassType::CLASS_ABSTRACT, getOutput(), and me().
MetaConfiguration::checkClassSanity | ( | MetaClass $ | class, | |
ReflectionClass $ | info | |||
) | [private] |
Definition at line 1265 of file MetaConfiguration.class.php.
References MetaClassType::CLASS_ABSTRACT, MetaClassType::CLASS_FINAL, MetaClassType::CLASS_SPOOKED, MetaClass::getName(), MetaClass::getPattern(), MetaClass::getTypeId(), Assert::isTrue(), and Assert::isUnreachable().
MetaConfiguration::checkDirectory | ( | $ | directory, | |
$ | preStrip, | |||
$ | postStrip, | |||
$ | drop = false | |||
) | [private] |
Definition at line 698 of file MetaConfiguration.class.php.
MetaConfiguration::checkEnumerationReferentialIntegrity | ( | Enumeration $ | enumeration, | |
$ | tableName | |||
) | [private] |
Definition at line 1310 of file MetaConfiguration.class.php.
References Expression::eq(), Enumeration::getObjectList(), DBPool::me(), OSQL::select(), and OSQL::update().
MetaConfiguration::checkForStaleFiles | ( | $ | drop = false |
) |
Definition at line 646 of file MetaConfiguration.class.php.
MetaConfiguration::checkIntegrity | ( | ) |
Definition at line 429 of file MetaConfiguration.class.php.
MetaConfiguration::checkRecursion | ( | MetaClassProperty $ | property, | |
MetaClass $ | holder, | |||
$ | paths = array() | |||
) | [private] |
Definition at line 905 of file MetaConfiguration.class.php.
References FetchStrategy::cascade(), MetaClassProperty::getFetchStrategy(), MetaClass::getName(), MetaClassProperty::getRelationId(), MetaClassProperty::getType(), Assert::isTrue(), FetchStrategy::JOIN, and MetaRelation::ONE_TO_ONE.
Referenced by load().
MetaConfiguration::checkSanity | ( | MetaClass $ | class | ) | [private] |
Definition at line 833 of file MetaConfiguration.class.php.
References MetaClassType::CLASS_SPOOKED, MetaClass::getFinalParent(), MetaClass::getIdentifier(), MetaClass::getName(), MetaClass::getParent(), MetaClass::getPattern(), MetaClass::getProperties(), MetaClass::getType(), MetaClass::getTypeId(), Assert::isFalse(), Assert::isTrue(), FetchStrategy::LAZY, and MetaRelation::ONE_TO_ONE.
Referenced by load().
MetaConfiguration::getClassByName | ( | $ | name | ) |
MissingElementException |
Definition at line 662 of file MetaConfiguration.class.php.
Referenced by load().
MetaConfiguration::getClassList | ( | ) |
Definition at line 672 of file MetaConfiguration.class.php.
MetaConfiguration::getOutput | ( | ) |
Definition at line 690 of file MetaConfiguration.class.php.
Referenced by buildClasses(), buildSchema(), and buildSchemaChanges().
MetaConfiguration::guessPattern | ( | $ | name | ) | [private] |
MissingElementException |
Definition at line 818 of file MetaConfiguration.class.php.
References Singleton::getInstance().
MetaConfiguration::isDryRun | ( | ) |
Definition at line 73 of file MetaConfiguration.class.php.
MetaConfiguration::isForcedGeneration | ( | ) |
Definition at line 58 of file MetaConfiguration.class.php.
MetaConfiguration::load | ( | $ | metafile, | |
$ | generate = true | |||
) |
Definition at line 91 of file MetaConfiguration.class.php.
References FetchStrategy::cascade(), checkRecursion(), checkSanity(), MetaClassType::CLASS_ABSTRACT, MetaClassType::CLASS_FINAL, getClassByName(), Assert::isFalse(), Assert::isTrue(), FetchStrategy::LAZY, loadXml(), and MetaRelation::ONE_TO_ONE.
MetaConfiguration::loadXml | ( | $ | metafile, | |
$ | generate | |||
) | [private] |
Definition at line 1218 of file MetaConfiguration.class.php.
Referenced by load().
MetaConfiguration::makeProperty | ( | $ | name, | |
$ | type, | |||
MetaClass $ | class, | |||
$ | size | |||
) | [private] |
Definition at line 773 of file MetaConfiguration.class.php.
References Assert::isFalse(), and Assert::isTrue().
static MetaConfiguration::me | ( | ) | [static] |
Implements Instantiatable.
Definition at line 35 of file MetaConfiguration.class.php.
References Singleton::getInstance().
Referenced by EnumerationClassPattern::build(), BasePattern::buildBusiness(), BasePattern::buildDao(), BasePattern::buildProto(), buildSchemaChanges(), BasePattern::dumpFile(), ObjectType::getClass(), MetaClass::hasChilds(), and out().
static MetaConfiguration::out | ( | ) | [static] |
Definition at line 43 of file MetaConfiguration.class.php.
References me().
Referenced by BasePattern::dumpFile().
MetaConfiguration::processClasses | ( | SimpleXMLElement $ | xml, | |
$ | metafile, | |||
$ | generate | |||
) | [private] |
Definition at line 979 of file MetaConfiguration.class.php.
References FetchStrategy::cascade(), MetaClassType::CLASS_SPOOKED, MetaClassProperty::getConvertedName(), MetaClassProperty::getFetchStrategyId(), MetaClassProperty::getRelationId(), MetaClassProperty::getType(), Assert::isFalse(), Assert::isTrue(), FetchStrategy::LAZY, FetchStrategy::lazy(), MetaRelation::makeFromName(), MetaRelation::ONE_TO_ONE, MetaClassProperty::required(), MetaClassProperty::setColumnName(), MetaClassProperty::setFetchStrategy(), and MetaClassProperty::setRelation().
MetaConfiguration::processIncludes | ( | SimpleXMLElement $ | xml, | |
$ | metafile | |||
) | [private] |
Definition at line 955 of file MetaConfiguration.class.php.
References Assert::isTrue().
MetaConfiguration::setDryRun | ( | $ | dry | ) |
Definition at line 66 of file MetaConfiguration.class.php.
MetaConfiguration::setForcedGeneration | ( | $ | orly | ) |
Definition at line 51 of file MetaConfiguration.class.php.
MetaConfiguration::setOutput | ( | MetaOutput $ | out | ) |
Definition at line 680 of file MetaConfiguration.class.php.
MetaConfiguration::setWithEnumerationRefIntegrityCheck | ( | $ | orly | ) |
Definition at line 81 of file MetaConfiguration.class.php.
MetaConfiguration::$checkEnumerationRefIntegrity = false [private] |
Definition at line 30 of file MetaConfiguration.class.php.
MetaConfiguration::$classes = array() [private] |
Definition at line 19 of file MetaConfiguration.class.php.
MetaConfiguration::$defaultSource = null [private] |
Definition at line 25 of file MetaConfiguration.class.php.
MetaConfiguration::$dryRun = false [private] |
Definition at line 28 of file MetaConfiguration.class.php.
MetaConfiguration::$forcedGeneration = false [private] |
Definition at line 27 of file MetaConfiguration.class.php.
MetaConfiguration::$liaisons = array() [private] |
Definition at line 22 of file MetaConfiguration.class.php.
MetaConfiguration::$out = null [private] |
Definition at line 17 of file MetaConfiguration.class.php.
Referenced by buildClasses(), buildSchema(), and buildSchemaChanges().
MetaConfiguration::$references = array() [private] |
Definition at line 23 of file MetaConfiguration.class.php.
MetaConfiguration::$sources = array() [private] |
Definition at line 20 of file MetaConfiguration.class.php.