An object that contains sql join fragments.
Copyright: | 2016 The Open University |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 92 lines (3 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
sql_join:: (1 method):
__construct()
__construct($joins = '', $wheres = '', $params = array() X-Ref |
Create an object that contains sql join fragments. Note, even if you set $cannotmatchanyrows to true, it is important to also set the other fields because the calling code is not required to check it. For example new \core\dml\sql_join('', '1 = 2', [], true); param: string $joins The join sql fragment. param: string $wheres The where sql fragment. param: array $params Any parameter values. param: bool $cannotmatchanyrows If true, this join is guaranteed to match no rows. See comment on the field above. |