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

Class: CodeGen_PECL_Element_Logo

Source Location: /CodeGen_PECL-0.9.0/PECL/Element/Logo.php

Class Overview

CodeGen_Element
   |
   --CodeGen_PECL_Element
      |
      --CodeGen_PECL_Element_Logo

Class that manages internal logo images for the extensions phpinfo block


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2005 Hartmut Holzgraefe

Methods


Inherited Variables

Inherited Methods

Class: CodeGen_PECL_Element

CodeGen_PECL_Element::cCodeEditorSettings()
Generate Editor settings block for C source files
CodeGen_PECL_Element::docEditorSettings()
Generate Editor settings block for documentation files
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 38]
Class that manages internal logo images for the extensions phpinfo block


[ Top ]


Method Detail

__construct (Constructor)   [line 79]

CodeGen_PECL_Element_Logo __construct( string $name, string 1)

Constructor
  • Access: public

Parameters:

string   1   —  source filename
string   $name   —  image basename

[ Top ]

cCode   [line 174]

string cCode( string $name)

Code snippet for image data declaration
  • Return: C code snippet
  • Access: public

Parameters:

string   $name   —  extension name

[ Top ]

getName   [line 91]

string getName( )

name getter

[ Top ]

hCode   [line 191]

string hCode( )

Generate data for declaration include file
  • Return: C code snippet
  • Access: public

[ Top ]

loadFile   [line 134]

bool loadFile( string $path, [string $mimetype = false])

Load image data from file, set mimetype
  • Return: true on success

Parameters:

string   $path   —  path to image file
string   $mimetype   —  mimetype

[ Top ]

minitCode   [line 151]

string minitCode( )

Code snippet for image registration in MINFO()
  • Return: C code snippet
  • Access: public

[ Top ]

mshutdownCode   [line 162]

string mshutdownCode( )

Code snippet for image release in MSHUTDOWN()
  • Return: C code snippet
  • Access: public

[ Top ]

phpinfoCode   [line 219]

string phpinfoCode( string $name)

Code snippet for phpinfo output
  • Return: C code snippet
  • Access: public

Parameters:

string   $name   —  extension name

[ Top ]

setData   [line 103]

bool setData( string $data, [string $mimetype = false])

Set image data and mimetype
  • Return: true on success

Parameters:

string   $data   —  binary image data
string   $mimetype   —  mimetype

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:16:03 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.