Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 58... Línea 58...
58
     * @param string|null $wheresql Where conditions for the SQL
58
     * @param string|null $wheresql Where conditions for the SQL
59
     * @param string|null $sortsql Order by conditions for the SQL
59
     * @param string|null $sortsql Order by conditions for the SQL
60
     * @param int|null $userid The user ID
60
     * @param int|null $userid The user ID
61
     * @return string
61
     * @return string
62
     */
62
     */
63
    protected function generate_get_records_sql(string $wheresql = null, string $sortsql = null, ?int $userid = null): string {
63
    protected function generate_get_records_sql(?string $wheresql = null, ?string $sortsql = null, ?int $userid = null): string {
64
        $selectsql = 'SELECT * FROM {' . self::TABLE . '} ' . $this->get_table_alias();
64
        $selectsql = 'SELECT * FROM {' . self::TABLE . '} ' . $this->get_table_alias();
65
        $selectsql .= $wheresql ? ' WHERE ' . $wheresql : '';
65
        $selectsql .= $wheresql ? ' WHERE ' . $wheresql : '';
66
        $selectsql .= $sortsql ? ' ORDER BY ' . $sortsql : '';
66
        $selectsql .= $sortsql ? ' ORDER BY ' . $sortsql : '';
Línea 67... Línea 67...
67
 
67