-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom class-attributes indexing #222
base: master
Are you sure you want to change the base?
Custom class-attributes indexing #222
Conversation
foreach ( $tmpNodeRowList as $nodeRow ) | ||
{ | ||
$nodeRowList[$nodeRow['node_id']] = $nodeRow; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why it that code required? Also, it has nothing to do with what the pull request describes, right?
$objectAttribute->attribute('contentclass_attribute_identifier') | ||
); | ||
if (array_key_exists($identifierComposite, $attributeMapList)) { | ||
return self::$singletons[$objectAttribute->attribute('id')] = new $attributeMapList[$identifierComposite]($objectAttribute); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe check if the class really exists. Not sure but trying to get an instance of a non-existing class is probably throwing a fatal error?
Is that self::$singletons used anywhere?
@@ -233,6 +233,23 @@ public static function getFieldNameList( eZContentClassAttribute $classAttribute | |||
} | |||
} | |||
|
|||
$customAttributeMap = $eZFindIni->variable('SolrFieldMapSettings', 'CustomAttributeMap'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code style is a bit off.
Allows for indexing specific attributes on classes using the CustomAttributeMap setting that was never properly/finished developed.