reference/runkit7/functions/runkit7-constant-redefine.xml
917c06eac884740ef9285f59387a3f5259d66722
...
...
@@ -0,0 +1,95 @@
1
+
<?xml version="1.0" encoding="utf-8"?>
2
+
<!-- $Revision$ -->
3
+

4
+
<refentry xml:id="function.runkit7-constant-redefine" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
+
<refnamediv>
6
+
<refname>runkit7_constant_redefine</refname>
7
+
<refpurpose>Redefine an already defined constant</refpurpose>
8
+
</refnamediv>
9
+

10
+
<refsect1 role="description">
11
+
&reftitle.description;
12
+
<methodsynopsis>
13
+
<type>bool</type><methodname>runkit7_constant_redefine</methodname>
14
+
<methodparam><type>string</type><parameter>constant_name</parameter></methodparam>
15
+
<methodparam><type>mixed</type><parameter>value</parameter></methodparam>
16
+
<methodparam choice="opt"><type>int</type><parameter>new_visibility</parameter></methodparam>
17
+
</methodsynopsis>
18
+
<para>
19
+

20
+
</para>
21
+
</refsect1>
22
+

23
+
<refsect1 role="parameters">
24
+
&reftitle.parameters;
25
+
<variablelist>
26
+
<varlistentry>
27
+
<term><parameter>constant_name</parameter></term>
28
+
<listitem>
29
+
<para>
30
+
Constant to redefine. Either the name of a global constant,
31
+
or <literal>classname::constname</literal> indicating class constant.
32
+
</para>
33
+
</listitem>
34
+
</varlistentry>
35
+
<varlistentry>
36
+
<term><parameter>value</parameter></term>
37
+
<listitem>
38
+
<para>
39
+
Value to assign to the constant.
40
+
</para>
41
+
</listitem>
42
+
</varlistentry>
43
+
<varlistentry>
44
+
<term><parameter>new_visibility</parameter></term>
45
+
<listitem>
46
+
<para>
47
+
The new visibility of the constant, for class constants.
48
+
Unchanged by default.
49
+
One of the <constant>RUNKIT7_ACC_*</constant> constants.
50
+
</para>
51
+
</listitem>
52
+
</varlistentry>
53
+
</variablelist>
54
+
</refsect1>
55
+

56
+
<refsect1 role="returnvalues">
57
+
&reftitle.returnvalues;
58
+
<para>
59
+
&return.success;
60
+
</para>
61
+
</refsect1>
62
+

63
+
<refsect1 role="seealso">
64
+
&reftitle.seealso;
65
+
<para>
66
+
<simplelist>
67
+
<member><function>runkit7_constant_add</function></member>
68
+
<member><function>runkit7_constant_remove</function></member>
69
+
</simplelist>
70
+
</para>
71
+
</refsect1>
72
+

73
+

74
+
</refentry>
75
+

76
+
<!-- Keep this comment at the end of the file
77
+
Local variables:
78
+
mode: sgml
79
+
sgml-omittag:t
80
+
sgml-shorttag:t
81
+
sgml-minimize-attributes:nil
82
+
sgml-always-quote-attributes:t
83
+
sgml-indent-step:1
84
+
sgml-indent-data:t
85
+
indent-tabs-mode:nil
86
+
sgml-parent-document:nil
87
+
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
88
+
sgml-exposed-tags:nil
89
+
sgml-local-catalogs:nil
90
+
sgml-local-ecat-files:nil
91
+
End:
92
+
vim600: syn=xml fen fdm=syntax fdl=2 si
93
+
vim: et tw=78 syn=sgml
94
+
vi: ts=1 sw=1
95
+
-->
0
96