X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fviews%2Ftests%2Fmodules%2Fviews_test_data%2Fsrc%2FPlugin%2Fviews%2Fjoin%2FJoinTest.php;fp=web%2Fcore%2Fmodules%2Fviews%2Ftests%2Fmodules%2Fviews_test_data%2Fsrc%2FPlugin%2Fviews%2Fjoin%2FJoinTest.php;h=b57c970fb6270fd905fb4d722c911007ec27eccf;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/web/core/modules/views/tests/modules/views_test_data/src/Plugin/views/join/JoinTest.php b/web/core/modules/views/tests/modules/views_test_data/src/Plugin/views/join/JoinTest.php new file mode 100644 index 000000000..b57c970fb --- /dev/null +++ b/web/core/modules/views/tests/modules/views_test_data/src/Plugin/views/join/JoinTest.php @@ -0,0 +1,48 @@ +joinValue; + } + + /** + * Sets the joinValue property. + * + * @param int $join_value + */ + public function setJoinValue($join_value) { + $this->joinValue = $join_value; + } + + + /** + * {@inheritdoc} + */ + public function buildJoin($select_query, $table, $view_query) { + // Add an additional hardcoded condition to the query. + $this->extra = 'views_test_data.uid = ' . $this->getJoinValue(); + parent::buildJoin($select_query, $table, $view_query); + } + +}