Свойство | Тип | Описание | |
---|---|---|---|
$active | |||
$ajaxAllowedHosts | array | Dot '.' means $_SERVER['HTTP_HOST'] (if any). | |
$ajaxSettings | array | AJAX settings. | |
$debug | |||
$defaultCharset | |||
$defaultDoctype | unknown_type | Applies only to HTML. | |
$defaultDocumentID | |||
$documents | |||
$dumpCount | |||
$extendMethods | |||
$extendStaticMethods | |||
$lastModified | |||
$mbstringSupport | boolean | XXX: Workaround for mbstring problems. | |
$plugins | object | Static namespace for plugins. | |
$pluginsLoaded | unknown_type | List of loaded plugins. | |
$pluginsMethods | |||
$pluginsStaticMethods |
Метод | Описание | |
---|---|---|
DOMNodeListToArray ( $DOMNodeList ) | ||
__callStatic ( $method, $params ) | ||
__destruct ( ) : phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery | QueryTemplatesPhpQuery | false | Multi-purpose function. | |
_markupToPHPCallback ( $m ) | ||
_phpToMarkupCallback ( $php, $charset = 'utf-8' ) | ||
ajax ( $options = [], $xhr = null ) : Zend_Http_Client | Make an AJAX request. | |
ajaxAllowHost ( $host1, $host2 = null, $host3 = null ) | ||
ajaxAllowURL ( $url1, $url2 = null, $url3 = null ) | ||
ajaxSetup ( $options ) | ||
browser ( $ajaxSettings, $callback, $param1 = null, $param2 = null, $param3 = null ) : phpQueryObject | ||
browserGet ( $url, $callback, $param1 = null, $param2 = null, $param3 = null ) : phpQueryObject | ||
browserPost ( $url, $data, $callback, $param1 = null, $param2 = null, $param3 = null ) : phpQueryObject | ||
callbackRun ( $callback, $params = [], $paramStructure = null ) : unknown_type | ||
code ( $type, $code ) : string | ||
data ( $node, $name, $data, $documentID = null ) | ||
debug ( $text ) | ||
each ( $object, $callback, $param1 = null, $param2 = null, $param3 = null ) : unknown_type | ||
extend ( string | array $target, array $source ) : unknown_type | Extend class namespace. | |
get ( $url, $data = null, $callback = null, $type = null ) | ||
getDOMDocument ( $source ) : string | Get DOMDocument object related to $source. | |
getDocument ( unknown_type $id = null ) : phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery | Returns document with id $id or last used as phpQueryObject. | |
getDocumentID ( $source ) : string | Returns source's document ID. | |
getJSON ( $url, $data = null, $callback = null ) | ||
grep ( $array, $callback, $invert = false ) : unknown_type | ||
inArray ( $value, $array ) | ||
isFunction ( $function ) : unknown_type | ||
isMarkup ( string $input ) : boolean | Checks if $input is HTML string, which has to start with '<'. | |
loadDocument ( $document ) : phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery | Reuses existing DOMDocument object. | |
makeArray ( $obj ) : unknown_type | ||
map ( $array, $callback, $param1 = null, $param2 = null, $param3 = null ) | ||
markupToPHP ( string | phpQueryObject $content ) : string | Converts document markup containing PHP code generated by phpQuery::php() into valid (executable) PHP code syntax. | |
merge ( array $one, array $two ) | Merge 2 phpQuery objects. | |
newDocument ( unknown_type $markup = null, $contentType = null ) : phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery | Creates new document from markup. | |
newDocumentFile ( string $file, $contentType = null ) : phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery | Creates new document from file $file. | |
newDocumentFileHTML ( $file, $charset = null ) : phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery | Creates new document from markup. | |
newDocumentFilePHP ( $file, $contentType = null ) : phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery | Creates new document from markup. | |
newDocumentFileXHTML ( $file, $charset = null ) : phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery | Creates new document from markup. | |
newDocumentFileXML ( $file, $charset = null ) : phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery | Creates new document from markup. | |
newDocumentHTML ( unknown_type $markup = null, $charset = null ) : phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery | Creates new document from markup. | |
newDocumentPHP ( unknown_type $markup = null, $contentType = 'text/html' ) : phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery | Creates new document from markup. | |
newDocumentXHTML ( unknown_type $markup = null, $charset = null ) : phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery | Creates new document from markup. | |
newDocumentXML ( unknown_type $markup = null, $charset = null ) : phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery | Creates new document from markup. | |
param ( array | phpQuery $data ) | Enter description here. | |
parseJSON ( string $json ) : mixed | Parses JSON into proper PHP type. | |
php ( $code ) : string | ||
phpToMarkup ( $php, $charset = 'utf-8' ) | ||
plugin ( string $class, string $file = null ) | Extend phpQuery with $class from $file. | |
post ( $url, $data = null, $callback = null, $type = null ) | ||
pq ( $arg1, $context = null ) | ||
removeData ( $node, $name, $documentID ) | ||
selectDocument ( unknown_type $id ) | Sets default document to $id. Document has to be loaded prior to using this method. | |
toJSON ( mixed $data ) : string | Returns JSON representation of $data. | |
trim ( $str ) | ||
unique ( $array ) | ||
unloadDocuments ( $id = null ) | Unloades all or specified document from memory. | |
unsafePHPTags ( phpQuery | string $content ) : string | Parses phpQuery object or HTML result against PHP tags and makes them active. |
Метод | Описание | |
---|---|---|
createDocumentWrapper ( unknown_type $html, $contentType = null, $documentID = null ) : unknown | Enter description here. | |
dataRemoveNode ( $node, $documentID ) | ||
dataSetupNode ( $node, $documentID ) | ||
httpData ( $data, $type, $options ) |
public __destruct ( ) : phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery | QueryTemplatesPhpQuery | false | ||
Результат | phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery | QueryTemplatesPhpQuery | false | phpQuery object or false in case of error. |
public static _phpToMarkupCallback ( $php, $charset = 'utf-8' ) |
public static ajax ( $options = [], $xhr = null ) : Zend_Http_Client | ||
Результат | Zend_Http_Client |
public static ajaxAllowHost ( $host1, $host2 = null, $host3 = null ) |
public static ajaxAllowURL ( $url1, $url2 = null, $url3 = null ) |
public static browser ( $ajaxSettings, $callback, $param1 = null, $param2 = null, $param3 = null ) : phpQueryObject | ||
$ajaxSettings | ||
$callback | ||
$param1 | ||
$param2 | ||
$param3 | ||
Результат | phpQueryObject |
public static browserGet ( $url, $callback, $param1 = null, $param2 = null, $param3 = null ) : phpQueryObject | ||
$url | ||
$callback | ||
$param1 | ||
$param2 | ||
$param3 | ||
Результат | phpQueryObject |
public static browserPost ( $url, $data, $callback, $param1 = null, $param2 = null, $param3 = null ) : phpQueryObject | ||
$url | ||
$data | ||
$callback | ||
$param1 | ||
$param2 | ||
$param3 | ||
Результат | phpQueryObject |
public static callbackRun ( $callback, $params = [], $paramStructure = null ) : unknown_type | ||
$callback | Callback | |
$params | ||
$paramStructure | ||
Результат | unknown_type |
protected static createDocumentWrapper ( unknown_type $html, $contentType = null, $documentID = null ) : unknown | ||
$html | unknown_type | |
Результат | unknown | New DOM ID |
protected static dataRemoveNode ( $node, $documentID ) |
public static each ( $object, $callback, $param1 = null, $param2 = null, $param3 = null ) : unknown_type | ||
$object | ||
$callback | ||
Результат | unknown_type |
public static get ( $url, $data = null, $callback = null, $type = null ) |
public static getDOMDocument ( $source ) : string | ||
$source | DOMNode|phpQueryObject|string | |
Результат | string |
public static getDocument ( unknown_type $id = null ) : phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery | ||
$id | unknown_type | |
Результат | phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery |
public static getDocumentID ( $source ) : string | ||
$source | DOMNode|phpQueryObject | |
Результат | string |
public static getJSON ( $url, $data = null, $callback = null ) |
public static grep ( $array, $callback, $invert = false ) : unknown_type | ||
$array | ||
$callback | ||
$invert | ||
Результат | unknown_type |
public static isFunction ( $function ) : unknown_type | ||
$function | ||
Результат | unknown_type |
public static loadDocument ( $document ) : phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery | ||
$document | DOMDocument | |
Результат | phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery |
public static makeArray ( $obj ) : unknown_type | ||
Результат | unknown_type |
public static map ( $array, $callback, $param1 = null, $param2 = null, $param3 = null ) |
public static markupToPHP ( string | phpQueryObject $content ) : string | ||
$content | string | phpQueryObject | |
Результат | string | PHP code. |
public static newDocument ( unknown_type $markup = null, $contentType = null ) : phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery | ||
$markup | unknown_type | |
Результат | phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery |
public static newDocumentFile ( string $file, $contentType = null ) : phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery | ||
$file | string | URLs allowed. See File wrapper page at php.net for more supported sources. |
Результат | phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery |
public static newDocumentFileHTML ( $file, $charset = null ) : phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery | ||
Результат | phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery |
public static newDocumentFilePHP ( $file, $contentType = null ) : phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery | ||
Результат | phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery |
public static newDocumentFileXHTML ( $file, $charset = null ) : phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery | ||
Результат | phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery |
public static newDocumentFileXML ( $file, $charset = null ) : phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery | ||
Результат | phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery |
public static newDocumentHTML ( unknown_type $markup = null, $charset = null ) : phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery | ||
$markup | unknown_type | |
Результат | phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery |
public static newDocumentPHP ( unknown_type $markup = null, $contentType = 'text/html' ) : phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery | ||
$markup | unknown_type | |
Результат | phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery |
public static newDocumentXHTML ( unknown_type $markup = null, $charset = null ) : phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery | ||
$markup | unknown_type | |
Результат | phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery |
public static newDocumentXML ( unknown_type $markup = null, $charset = null ) : phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery | ||
$markup | unknown_type | |
Результат | phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery |
public static post ( $url, $data = null, $callback = null, $type = null ) |
public static selectDocument ( unknown_type $id ) | ||
$id | unknown_type |
public static unloadDocuments ( $id = null ) |
public static unsafePHPTags ( phpQuery | string $content ) : string | ||
$content | phpQuery | string | |
Результат | string |
public static array $ajaxAllowedHosts | ||
Результат | array |
public static array $ajaxSettings | ||
Результат | array |
public static unknown_type $defaultDoctype | ||
Результат | unknown_type |
public static bool $mbstringSupport | ||
Результат | boolean |
public static object $plugins | ||
Результат | object |
public static unknown_type $pluginsLoaded | ||
Результат | unknown_type |