Rapide Advanced Adulte
 
 Web|Image|Shop|Video|News|Wmx|Mobile|Wiki|Ajouter ce moteur

     Manuel PHP     
Partager
 
 
Partager
Partager

 

Table :

.ob tidyhandler
.tidy access count
.tidy clean repair
.tidy config count
.tidy:: construct
.tidy diagnose
.tidy error count
.tidy get body
.tidy get config
.tidy get error buffer
.tidy get head
.tidy get html ver
.tidy get html
.tidy get opt doc
.tidy get output
.tidy get release
.tidy get root
.tidy get status
.tidy getopt
.tidy is xhtml
.tidy is xml
.tidy load config
.tidy node->get attr
.tidy node->get nodes
.tidy node->next
.tidy node->prev
.tidy parse file
.tidy parse string
.tidy repair file
.tidy repair string
.tidy reset config
.tidy save config
.tidy set encoding
.tidy setopt
.tidy warning count
.tidyNode->hasChildren
.tidyNode->hasSiblings
.tidyNode->isAsp
.tidyNode->isComment
.tidyNode->isHtml
.tidyNode->isJste
.tidyNode->isPhp
.tidyNode->isText
 
   

  tidy_getopt  


tidy_getopt

(PHP 5)

tidy_getopt -- Retourne la valeur de l'option de configuration Tidy

Description

Style procédural

mixed tidy_getopt ( tidy object, string option )

Style orienté objet (méthode)

mixed tidy->getOpt ( string option )

tidy_getopt() retourne la valeur de l'option spécifiée option pour l'objet object. Le type retourné dépend du type de l'option spécifiée option. Vous pouvez trouver une liste de chaque option de configuration ainsi que leur type à : http://tidy.sourceforge.net/docs/quickref.html.

Exemple 1. Exemple avec tidy_getopt()

<?php

$html
='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html><head><title>Title</title></head>
<body>

<p><img src="img.png"></p>

</body></html>'
;

$config = array('accessibility-check' => 3,
                
'alt-text' => 'du texte');

$tidy = new tidy();
$tidy->parseString($html, $config);


var_dump($tidy->getOpt('accessibility-check')); //integer
var_dump($tidy->getOpt('lower-literals')); //boolean
var_dump($tidy->getOpt('alt-text')); //string

?>

L'exemple ci-dessus va afficher :

int(3)
bool(true)
string(9) "some text"


    Annonces       
 

 Retour au chapitre Php

 

Top
 

Ajouter JungleKey.fr à votre Explorateur

 
 

About Us | © 2007 JungleKey




iBlack | Mobile | Wiki | Ajouter ce moteur
.