프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 ajax ( $options = [], $xhr = null ) : Zend_Http_Client | ||
리턴 | Zend_Http_Client |
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 |
public static each ( $object, $callback, $param1 = null, $param2 = null, $param3 = null ) : unknown_type | ||
$object | ||
$callback | ||
리턴 | unknown_type |
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 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 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 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 unknown_type $defaultDoctype | ||
리턴 | unknown_type |
public static bool $mbstringSupport | ||
리턴 | boolean |
public static unknown_type $pluginsLoaded | ||
리턴 | unknown_type |