public static function resolvePageByPath($handle, $path = false)
    {
        return Symphony::Database()->fetchRow(0, sprintf(
            "SELECT * FROM `tbl_pages` WHERE `path` %s AND `handle` = '%s' LIMIT 1",
            ($path ? " = '".Symphony::Database()->cleanValue($path)."'" : 'IS NULL'),
            Symphony::Database()->cleanValue($handle)
        ));
    }
public static function resolvePageByPath($handle, $path = false)
    {
        return Symphony::Database()->fetchRow(0, sprintf(
            "SELECT * FROM `tbl_pages` WHERE `path` %s AND `handle` = '%s' LIMIT 1",
            ($path ? " = '".Symphony::Database()->cleanValue($path)."'" : 'IS NULL'),
            Symphony::Database()->cleanValue($handle)
        ));
    }
public static function resolvePageByPath ( $ handle , $ path = false ) { return Symphony :: Database ( ) -> fetchRow ( 0 , sprintf ( "SELECT * FROM `tbl_pages` WHERE `path` %s AND `handle` = '%s' LIMIT 1" , ( $ path ? " = '" . Symphony :: Database ( ) -> cleanValue ( $ path ) . "'" : 'IS NULL' ) , Symphony :: Database ( ) -> cleanValue ( $ handle ) ) ) ; }
Resolve a page by it's handle and path

@param $handle
The handle of the page
@param boolean $path
The path to the page
@return mixed
Array if found, false if not
Resolve a page by it s handle and path