Skip to content

[FEATURE] Implemented content query #263

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

Merged
merged 37 commits into from
Sep 24, 2014
Merged

[FEATURE] Implemented content query #263

merged 37 commits into from
Sep 24, 2014

Conversation

wachterjohannes
Copy link
Member

Content Query used to build queries for loading small content pieces.

Tasks:

Informations:

Q A
Tests pass? yes
Fixed tickets none
BC Breaks none
Doc TODO

$target = & $fieldsData;
}

if (!isset($field['property'])) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Separate in own methods getRowValue& loadExtensionData ...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

$this->contentTypeManager = $contentTypeManager;
$this->stopwatch = $stopwatch;

$this->createExtensionCache();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/create/initialize

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it in a separate method?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because it is used more than once!

/**
* converts a query row to an array
*/
private function rowToArray(Row $row, $locale, $webspaceKey, $routesPath, $fields)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method seems to duplicate functionality from the content mapper

@@ -1610,4 +1639,269 @@ private function getUniquePath($name, NodeInterface $parent)
return $name;
}
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to add a comment that the code below this line relates to mapping Row data, or maybe subclass it and just have the public methods here.

@dantleech
Copy link
Contributor

Have reviewed and can merge once the tests pass

@wachterjohannes
Copy link
Member Author

@dantleech has you fixed you comments?

@dantleech
Copy link
Contributor

@wachterjohannes yeah.. as you are not working today :)

@wachterjohannes
Copy link
Member Author

perfekt(=

dantleech added a commit that referenced this pull request Sep 24, 2014
[FEATURE] Implemented content query
@dantleech dantleech merged commit 994aa80 into develop Sep 24, 2014
@dantleech dantleech deleted the hotfix/content-query branch September 24, 2014 08:30
chirimoya added a commit that referenced this pull request Oct 17, 2014
chirimoya added a commit that referenced this pull request Oct 31, 2014
alexander-schranz added a commit to alexander-schranz/sulu that referenced this pull request Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants