CodeGen
[ class tree: CodeGen ] [ index: CodeGen ] [ all elements ]

Class: CodeGen_PECL_Element_ClassConstant

Source Location: /CodeGen_PECL-1.1.3/PECL/Element/ClassConstant.php

Class Overview

CodeGen_Element
   |
   --CodeGen_PECL_Element
      |
      --CodeGen_PECL_Element_ClassConstant

Class describing a PHP class constant within a PECL extension


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2005-2008 Hartmut Holzgraefe

Variables

Methods


Inherited Variables

Inherited Methods

Class: CodeGen_PECL_Element

CodeGen_PECL_Element::isKeyword()
Checks whether a string is a reserved name
CodeGen_PECL_Element::isType()
Checks whether a string is a valid PHP type name and returns the official name

Class Details

[line 39]
Class describing a PHP class constant within a PECL extension


[ Top ]


Class Variables

$desc =

[line 72]

The constants description text
  • Access: protected

Type:   string


[ Top ]

$name =

[line 48]

The constants name
  • Access: protected

Type:   string


[ Top ]

$type =  "string"

[line 56]

The constants PHP data type
  • Access: protected

Type:   string


[ Top ]

$value =

[line 64]

The constants value
  • Access: protected

Type:   string


[ Top ]



Method Detail

getName   [line 103]

string getName( )

Get constant name
  • Access: public

[ Top ]

minitCode   [line 166]

string minitCode( $classptr)

MINIT code fragment
  • Access: public

Parameters:

   $classptr   — 

[ Top ]

minitFooter   [line 217]

string minitFooter( )

MINIT code footer
  • Access: public

[ Top ]

minitHeader   [line 199]

string minitHeader( )

MINIT code header
  • Access: public

[ Top ]

setDesc   [line 152]

bool setDesc( string $desc)

Set constant descriptive text
  • Return: true on success
  • Access: public

Parameters:

string   $desc   —  the name

[ Top ]

setName   [line 82]

bool setName( string $name)

Set constant name
  • Return: true on success
  • Access: public

Parameters:

string   $name   —  the name

[ Top ]

setType   [line 116]

bool setType( string $type)

Set constant type
  • Return: true on success
  • Access: public

Parameters:

string   $type   —  the type

[ Top ]

setValue   [line 134]

bool setValue( string $value)

Set constant value
  • Return: true on success
  • Access: public

Parameters:

string   $value   —  the value

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:39:08 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.