Searched refs:attr (Results 1 - 25 of 38) sorted by relevance

12

/PHP_5_5/ext/dom/examples/
H A Ddom1.php41 //$attr = $dom->createAttribute("src", "picture.gif");
42 //print_r($attr);
44 //$rootnode->set_attributeNode($attr);
45 $attr = $rootnode->setAttribute("src", "picture.gif"); variable
46 $attr = $rootnode->getAttribute("src"); variable
47 print_r($attr);
51 $attr = $rootnode->getAttributeNode("src"); variable
52 print_node($attr);
55 $attr = $rootnode->removeAttribute("src"); variable
56 print "Removed " . $attr
[all...]
/PHP_5_5/ext/pdo/tests/
H A Dpdo_test.inc25 $attr = getenv('PDOTEST_ATTR');
26 if (is_string($attr) && strlen($attr)) {
27 $attr = unserialize($attr);
29 $attr = null;
35 $db = new $classname($dsn, $user, $pass, $attr);
/PHP_5_5/ext/xmlreader/examples/
H A Dxmlreader_file.php10 $attr = $reader->moveToFirstAttribute(); variable
11 while ($attr) {
14 $attr = $reader->moveToNextAttribute(); variable
H A Dxmlreader_string.php21 $attr = $reader->moveToFirstAttribute(); variable
22 while ($attr) {
25 $attr = $reader->moveToNextAttribute(); variable
/PHP_5_5/ext/xmlrpc/libxmlrpc/
H A Dxml_element.c610 xml_element_attr* attr = malloc(sizeof(xml_element_attr)); local
611 if(attr) {
612 attr->key = strdup(*p);
613 attr->val = strdup(*(p+1));
614 Q_PushTail(&mydata->current->attrs, attr);
H A Dxml_to_soap.c69 xml_element_attr* attr = malloc(sizeof(xml_element_attr)); local
70 if (attr) {
71 attr->key = key ? strdup(key) : NULL;
72 attr->val = val ? strdup(val) : NULL;
74 return attr;
/PHP_5_5/ext/intl/doc/
H A Dcollator_api.php188 * @param int $attr Attribute to get value for.
192 public function getAttribute( $attr ) {}
199 * @param int $attr Attribute.
204 public function setAttribute( $attr, $val ) {}
343 * @param int $attr Attribute to get value for.
347 function collator_get_attribute( $coll, $attr ) {}
372 * @param int $attr Attribute.
377 function collator_set_attribute( $coll, $attr, $val ) {}
H A Dformatter_api.php230 * @param integer $attr One of UNumberFormatAttribute constants
234 public function setAttribute($attr, $value) {}
242 * @param integer $attr One of UNumberFormatTextAttribute constants
246 public function setTextAttribute($attr, $value) {}
254 * @param integer|array $attr One of UNumberFormatSymbol constants or array of symbols, indexed by
258 public function setSymbol($attr, $value) {}
273 * @param integer $attr One of UNumberFormatAttribute constants
276 public function getAttribute($attr) {}
280 * @param integer $attr One of UNumberFormatTextAttribute constants
283 public function getTextAttribute($attr) {}
[all...]
/PHP_5_5/ext/intl/formatter/
H A Dformatter_class.c128 ZEND_ARG_INFO(0, attr)
132 ZEND_ARG_INFO(0, attr)
137 ZEND_ARG_INFO(0, attr)
/PHP_5_5/ext/oci8/tests/
H A Dconn_attr.inc53 function get_attr($conn,$attr)
55 $sel_stmt="select " .$attr. " from v\$session where sid =
61 echo "The value of ".$attr ." is ".oci_result($s2,1)."\n";
90 function set_attr($conn,$attr,$sufix)
92 if (!strcmp($attr,'MODULE'))
94 else if (!strcmp($attr,'ACTION'))
96 else if (!strcmp($attr,'CLIENT_INFO'))
98 else if (!strcmp($attr,'CLIENT_IDENTIFIER'))
103 echo "Value of $attr has been set successfully\n";
129 function get_sys_attr($conn,$attr)
[all...]
/PHP_5_5/ext/pdo_mysql/tests/
H A Dmysql_pdo_test.inc12 $attr = getenv('PDOTEST_ATTR');
14 if (is_string($attr) && strlen($attr)) {
15 $attr = unserialize($attr);
17 $attr = null;
24 $db = new $classname($dsn, $user, $pass, $attr);
/PHP_5_5/ext/pdo/
H A Dphp_pdo_driver.h257 typedef int (*pdo_dbh_set_attr_func)(pdo_dbh_t *dbh, long attr, zval *val TSRMLS_DC);
272 typedef int (*pdo_dbh_get_attr_func)(pdo_dbh_t *dbh, long attr, zval *val TSRMLS_DC);
358 typedef int (*pdo_stmt_set_attr_func)(pdo_stmt_t *stmt, long attr, zval *val TSRMLS_DC);
361 typedef int (*pdo_stmt_get_attr_func)(pdo_stmt_t *stmt, long attr, zval *val TSRMLS_DC);
H A Dpdo_dbh.c39 static int pdo_dbh_attribute_set(pdo_dbh_t *dbh, long attr, zval *value TSRMLS_DC);
710 static int pdo_dbh_attribute_set(pdo_dbh_t *dbh, long attr, zval *value TSRMLS_DC) /* {{{ */ argument
720 switch (attr) {
850 if (dbh->methods->set_attribute(dbh, attr, value TSRMLS_CC)) {
855 if (attr == PDO_ATTR_AUTOCOMMIT) {
871 long attr; local
874 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lz", &attr, &value)) {
881 if (pdo_dbh_attribute_set(dbh, attr, value TSRMLS_CC) != FAILURE) {
893 long attr; local
895 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &attr)) {
[all...]
/PHP_5_5/ext/pdo_odbc/
H A Dodbc_driver.c339 static int odbc_handle_set_attr(pdo_dbh_t *dbh, long attr, zval *val TSRMLS_DC) argument
342 switch (attr) {
354 static int odbc_handle_get_attr(pdo_dbh_t *dbh, long attr, zval *val TSRMLS_DC) argument
357 switch (attr) {
387 odbc_handle_get_attr, /* get attr */
/PHP_5_5/ext/soap/
H A Dphp_encoding.c302 xmlAttrPtr attr = (*node_ptr)->properties; local
313 attr = get_attribute(attr, "id");
314 if (attr == NULL || attr->ns == NULL) {
317 attr = attr->next;
319 if (attr) {
320 id = (char*)attr->children->content;
335 attr
1598 sdlAttributePtr *attr; local
2001 sdlAttributePtr *attr; local
2565 xmlAttrPtr attr; local
[all...]
H A Dphp_packet_soap.c30 xmlAttrPtr attr; local
82 attr = env->properties;
83 while (attr != NULL) {
84 if (attr->ns == NULL) {
88 } else if (attr_is_equal_ex(attr,"encodingStyle",SOAP_1_2_ENV_NAMESPACE)) {
93 } else if (strcmp((char*)attr->children->content, SOAP_1_1_ENC_NAMESPACE) != 0) {
99 attr = attr->next;
130 attr = body->properties;
131 while (attr !
[all...]
H A Dphp_schema.c984 xmlAttrPtr attr = get_attribute(node->properties, "minOccurs"); local
986 if (attr) {
987 model->min_occurs = atoi((char*)attr->children->content);
992 attr = get_attribute(node->properties, "maxOccurs");
993 if (attr) {
994 if (!strncmp((char*)attr->children->content, "unbounded", sizeof("unbounded"))) {
997 model->max_occurs = atoi((char*)attr->children->content);
1489 xmlAttrPtr attrs, attr, ns, name, type, ref = NULL; local
1590 attr = get_attribute(attrs, "nillable");
1591 if (attr) {
1731 xmlAttrPtr attr, name, ref = NULL, type = NULL; local
2049 sdlExtraAttributePtr *attr = (sdlExtraAttributePtr*)attribute; local
2080 schema_attribute_fixup(sdlCtx *ctx, sdlAttributePtr attr) argument
2130 schema_attributegroup_fixup(sdlCtx *ctx, sdlAttributePtr attr, HashTable *ht) argument
2235 sdlAttributePtr *attr; local
2292 sdlAttributePtr *attr; local
2481 sdlExtraAttributePtr attr = *((sdlExtraAttributePtr*)attribute); local
2494 sdlExtraAttributePtr attr = *((sdlExtraAttributePtr*)attribute); local
2507 sdlAttributePtr attr = *((sdlAttributePtr*)attribute); local
2533 sdlAttributePtr attr = *((sdlAttributePtr*)attribute); local
[all...]
H A Dphp_sdl.c217 xmlAttrPtr attr; local
218 if ((attr = get_attribute_ex(node->properties, "required", WSDL_NAMESPACE)) != NULL &&
219 attr->children && attr->children->content &&
220 (strcmp((char*)attr->children->content, "1") == 0 ||
221 strcmp((char*)attr->children->content, "true") == 0)) {
1227 static void sdl_deserialize_attribute(sdlAttributePtr attr, encodePtr *encoders, char **in) argument
1231 attr->name = sdl_deserialize_string(in);
1232 attr->namens = sdl_deserialize_string(in);
1233 attr
1389 sdlAttributePtr attr = emalloc(sizeof(sdlAttribute)); local
1840 sdl_serialize_attribute(sdlAttributePtr attr, HashTable *tmp_encoders, smart_str *out) argument
2606 make_persistent_sdl_attribute(sdlAttributePtr attr, HashTable *ptr_map, HashTable *bp_types, HashTable *bp_encoders) argument
[all...]
H A Dphp_xml.c276 xmlAttrPtr attr; local
286 attr = get_attribute_ex(node->properties, attribute, attr_ns);
287 if (attr != NULL && strcmp((char*)attr->children->content, value) == 0) {
299 xmlAttrPtr attr = get_attribute_ex(node->properties, attribute, attr_ns); local
300 if (attr != NULL && strcmp((char*)attr->children->content, value) == 0) {
H A Dphp_xml.h28 #define get_node_with_attribute(node, name, attr, val) get_node_with_attribute_ex(node, name, NULL, attr, val, NULL)
29 #define get_node_with_attribute_recursive(node, name, attr, val) get_node_with_attribute_recursive_ex(node, name, NULL, attr, val, NULL)
H A Dsoap.c3424 xmlAttrPtr attr; local
3454 attr = env->properties;
3455 while (attr != NULL) {
3456 if (attr->ns == NULL) {
3458 } else if (attr_is_equal_ex(attr,"encodingStyle",SOAP_1_2_ENV_NAMESPACE)) {
3461 } else if (strcmp((char*)attr->children->content,SOAP_1_1_ENC_NAMESPACE) != 0) {
3465 attr = attr->next;
3494 attr = body->properties;
3495 while (attr !
4719 sdlAttributePtr *attr; local
4803 sdlAttributePtr *attr; local
[all...]
/PHP_5_5/ext/standard/
H A Dlink_win32.c119 DWORD attr; local
169 if ((attr = GetFileAttributes(topath)) == INVALID_FILE_ATTRIBUTES) {
177 ret = pCreateSymbolicLinkA(source_p, topath, (attr & FILE_ATTRIBUTE_DIRECTORY ? 1 : 0));
/PHP_5_5/ext/com_dotnet/
H A Dcom_typeinfo.c334 TYPEATTR *attr; local
337 ITypeInfo_GetTypeAttr(coinfo, &attr);
339 for (i = 0; i < attr->cImplTypes; i++) {
359 ITypeInfo_ReleaseTypeAttr(coinfo, attr);
436 TYPEATTR *attr; local
444 if (FAILED(ITypeInfo_GetTypeAttr(typeinfo, &attr))) {
449 if (id_to_name == NULL || attr->typekind == TKIND_DISPATCH) {
452 memcpy(guid, &attr->guid, sizeof(GUID));
462 guidstring = php_com_string_from_clsid(&attr->guid, codepage TSRMLS_CC);
474 for (i = 0; i < attr
[all...]
/PHP_5_5/ext/dom/
H A Delement.c111 ZEND_ARG_OBJ_INFO(0, attr, DOMAttr, 0)
336 xmlNodePtr attr; local
345 attr = dom_get_dom1_attribute(nodep, (xmlChar *)name);
346 if (attr) {
347 switch (attr->type) {
349 value = xmlNodeListGetString(attr->doc, attr->children, 1);
352 value = xmlStrdup(((xmlNsPtr)attr)->href);
355 value = xmlStrdup(((xmlAttributePtr)attr)->defaultValue);
376 xmlNodePtr attr local
746 xmlAttr *attr; local
1064 xmlNodePtr attr; local
[all...]
/PHP_5_5/ext/simplexml/
H A Dsimplexml.c254 xmlAttrPtr attr = NULL; local
287 attr = (xmlAttrPtr)node;
291 attr = node ? node->properties : NULL;
308 while (attr && nodendx <= Z_LVAL_P(member)) {
309 if ((!test || !xmlStrcmp(attr->name, sxe->iter.name)) && match_ns(sxe, (xmlNodePtr) attr, sxe->iter.nsprefix, sxe->iter.isprefix)) {
311 _node_as_zval(sxe, (xmlNodePtr) attr, return_value, SXE_ITER_NONE, NULL, sxe->iter.nsprefix, sxe->iter.isprefix TSRMLS_CC);
316 attr = attr->next;
319 while (attr) {
459 xmlAttrPtr attr = NULL; local
740 xmlAttrPtr attr = NULL; local
870 xmlAttrPtr attr = NULL; local
1069 xmlAttrPtr attr; local
1450 xmlAttrPtr attr; local
[all...]

Completed in 42 milliseconds

12