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

12

/PHP_TRUNK/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_TRUNK/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_TRUNK/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_TRUNK/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_TRUNK/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_TRUNK/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_TRUNK/ext/oci8/tests/
H A Dconn_attr.inc51 function get_attr($conn,$attr)
53 $sel_stmt="select " .$attr. " from v\$session where sid =
59 echo "The value of ".$attr ." is ".oci_result($s2,1)."\n";
88 function set_attr($conn,$attr,$sufix)
90 if (!strcmp($attr,'MODULE'))
92 else if (!strcmp($attr,'ACTION'))
94 else if (!strcmp($attr,'CLIENT_INFO'))
96 else if (!strcmp($attr,'CLIENT_IDENTIFIER'))
101 echo "Value of $attr has been set successfully\n";
127 function get_sys_attr($conn,$attr)
[all...]
/PHP_TRUNK/Zend/
H A Dzend_ast.c50 ast->attr = 0;
56 ZEND_API zend_ast *zend_ast_create_zval_ex(zval *zv, zend_ast_attr attr) { argument
62 ast->attr = attr;
77 ast->attr = 0;
91 static zend_ast *zend_ast_create_from_va_list(zend_ast_kind kind, zend_ast_attr attr, va_list va) { argument
98 ast->attr = attr;
118 ZEND_API zend_ast *zend_ast_create_ex(zend_ast_kind kind, zend_ast_attr attr, ...) { argument
122 va_start(va, attr);
[all...]
H A Dzend_ast.h155 zend_ast_attr attr; /* Additional attribute, use depending on node type */ member in struct:_zend_ast
163 zend_ast_attr attr; member in struct:_zend_ast_list
172 zend_ast_attr attr; member in struct:_zend_ast_zval
179 zend_ast_attr attr; /* Unused - for structure compatibility */ member in struct:_zend_ast_decl
189 ZEND_API zend_ast *zend_ast_create_zval_ex(zval *zv, zend_ast_attr attr);
191 ZEND_API zend_ast *zend_ast_create_ex(zend_ast_kind kind, zend_ast_attr attr, ...);
/PHP_TRUNK/ext/dom/
H A Delement.c111 ZEND_ARG_OBJ_INFO(0, attr, DOMAttr, 0)
333 xmlNodePtr attr; local
342 attr = dom_get_dom1_attribute(nodep, (xmlChar *)name);
343 if (attr) {
344 switch (attr->type) {
346 value = xmlNodeListGetString(attr->doc, attr->children, 1);
349 value = xmlStrdup(((xmlNsPtr)attr)->href);
352 value = xmlStrdup(((xmlAttributePtr)attr)->defaultValue);
373 xmlNodePtr attr local
745 xmlAttr *attr; local
1064 xmlNodePtr attr; local
[all...]
/PHP_TRUNK/ext/intl/formatter/
H A Dformatter_class.c118 ZEND_ARG_INFO(0, attr)
122 ZEND_ARG_INFO(0, attr)
127 ZEND_ARG_INFO(0, attr)
/PHP_TRUNK/ext/pdo/
H A Dphp_pdo_driver.h259 typedef int (*pdo_dbh_set_attr_func)(pdo_dbh_t *dbh, zend_long attr, zval *val TSRMLS_DC);
274 typedef int (*pdo_dbh_get_attr_func)(pdo_dbh_t *dbh, zend_long attr, zval *val TSRMLS_DC);
360 typedef int (*pdo_stmt_set_attr_func)(pdo_stmt_t *stmt, zend_long attr, zval *val TSRMLS_DC);
363 typedef int (*pdo_stmt_get_attr_func)(pdo_stmt_t *stmt, zend_long attr, zval *val TSRMLS_DC);
/PHP_TRUNK/ext/soap/
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.c988 xmlAttrPtr attr = get_attribute(node->properties, "minOccurs"); local
990 if (attr) {
991 model->min_occurs = atoi((char*)attr->children->content);
996 attr = get_attribute(node->properties, "maxOccurs");
997 if (attr) {
998 if (!strncmp((char*)attr->children->content, "unbounded", sizeof("unbounded"))) {
1001 model->max_occurs = atoi((char*)attr->children->content);
1493 xmlAttrPtr attrs, attr, ns, name, type, ref = NULL; local
1594 attr = get_attribute(attrs, "nillable");
1595 if (attr) {
1735 xmlAttrPtr attr, name, ref = NULL, type = NULL; local
2088 schema_attribute_fixup(sdlCtx *ctx, sdlAttributePtr attr) argument
2136 schema_attributegroup_fixup(sdlCtx *ctx, sdlAttributePtr attr, HashTable *ht) argument
2234 sdlAttributePtr attr; local
2287 sdlAttributePtr attr; local
2472 sdlExtraAttributePtr attr = Z_PTR_P(zv); local
2485 sdlExtraAttributePtr attr = Z_PTR_P(zv); local
2498 sdlAttributePtr attr = Z_PTR_P(zv); local
2524 sdlAttributePtr attr = Z_PTR_P(zv); local
[all...]
H A Dphp_sdl.c216 xmlAttrPtr attr; local
217 if ((attr = get_attribute_ex(node->properties, "required", WSDL_NAMESPACE)) != NULL &&
218 attr->children && attr->children->content &&
219 (strcmp((char*)attr->children->content, "1") == 0 ||
220 strcmp((char*)attr->children->content, "true") == 0)) {
1220 static void sdl_deserialize_attribute(sdlAttributePtr attr, encodePtr *encoders, char **in) argument
1224 attr->name = sdl_deserialize_string(in);
1225 attr->namens = sdl_deserialize_string(in);
1226 attr
1382 sdlAttributePtr attr = emalloc(sizeof(sdlAttribute)); local
1830 sdl_serialize_attribute(sdlAttributePtr attr, HashTable *tmp_encoders, smart_str *out) argument
2588 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 Dphp_encoding.c294 xmlAttrPtr attr = node_ptr->properties; local
305 attr = get_attribute(attr, "id");
306 if (attr == NULL || attr->ns == NULL) {
309 attr = attr->next;
311 if (attr) {
312 id = (char*)attr->children->content;
327 attr
1533 sdlAttributePtr attr; local
1920 sdlAttributePtr attr; local
2478 xmlAttrPtr attr; local
[all...]
H A Dsoap.c3441 xmlAttrPtr attr; local
3471 attr = env->properties;
3472 while (attr != NULL) {
3473 if (attr->ns == NULL) {
3475 } else if (attr_is_equal_ex(attr,"encodingStyle",SOAP_1_2_ENV_NAMESPACE)) {
3478 } else if (strcmp((char*)attr->children->content,SOAP_1_1_ENC_NAMESPACE) != 0) {
3482 attr = attr->next;
3511 attr = body->properties;
3512 while (attr !
4708 sdlAttributePtr attr; local
4791 sdlAttributePtr attr; local
[all...]
/PHP_TRUNK/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_TRUNK/ext/simplexml/
H A Dsimplexml.c251 xmlAttrPtr attr = NULL; local
282 attr = (xmlAttrPtr)node;
286 attr = node ? node->properties : NULL;
302 while (attr && nodendx <= Z_LVAL_P(member)) {
303 if ((!test || !xmlStrcmp(attr->name, sxe->iter.name)) && match_ns(sxe, (xmlNodePtr) attr, sxe->iter.nsprefix, sxe->iter.isprefix)) {
305 _node_as_zval(sxe, (xmlNodePtr) attr, rv, SXE_ITER_NONE, NULL, sxe->iter.nsprefix, sxe->iter.isprefix TSRMLS_CC);
310 attr = attr->next;
313 while (attr) {
451 xmlAttrPtr attr = NULL; local
729 xmlAttrPtr attr = NULL; local
857 xmlAttrPtr attr = NULL; local
1051 xmlAttrPtr attr; local
1429 xmlAttrPtr attr; local
[all...]
/PHP_TRUNK/ext/com_dotnet/
H A Dcom_typeinfo.c333 TYPEATTR *attr; local
336 ITypeInfo_GetTypeAttr(coinfo, &attr);
338 for (i = 0; i < attr->cImplTypes; i++) {
358 ITypeInfo_ReleaseTypeAttr(coinfo, attr);
435 TYPEATTR *attr; local
443 if (FAILED(ITypeInfo_GetTypeAttr(typeinfo, &attr))) {
448 if (id_to_name == NULL || attr->typekind == TKIND_DISPATCH) {
451 memcpy(guid, &attr->guid, sizeof(GUID));
461 guidstring = php_com_string_from_clsid(&attr->guid, codepage TSRMLS_CC);
473 for (i = 0; i < attr
[all...]

Completed in 73 milliseconds

12