blueshoes php application framework and cms            applications_faq
[ class tree: applications_faq ] [ index: applications_faq ] [ all elements ]

Class: Bs_Faq

Source Location: /applications/faq/Bs_Faq.class.php

Class Overview

Bs_Object
   |
   --Bs_Faq

for an example of how to use this see applications/cms/Bs_Cms_BlockFaq.class.php.


Author(s):

Version:

  • 4.3.$Revision: 1.2 $ $Date: 2003/08/09 15:22:34 $

Copyright:

  • blueshoes.org

Variables

Methods


Inherited Variables

Inherited Methods

Class: Bs_Object

Bs_Object::Bs_Object()
Bs_Object::getErrors()
Basic error handling: Get *all* errors as string array from the global Bs_Error-error stack.
Bs_Object::getLastError()
Basic error handling: Get last error string from the global Bs_Error-error stack.
Bs_Object::getLastErrors()
Basic error handling: Get last errors string array from the global Bs_Error-error stack sinc last call of getLastErrors().
Bs_Object::persist()
Persists this object by serializing it and saving it to a file with unique name.
Bs_Object::setError()
Basic error handling: Push an error string on the global Bs_Error-error stack.
Bs_Object::toHtml()
Dumps the content of this object to a string using PHP's var_dump().
Bs_Object::toString()
Dumps the content of this object to a string using PHP's var_dump().
Bs_Object::unpersist()
Fetches an object that was persisted with persist()

Class Details

[line 22]
for an example of how to use this see applications/cms/Bs_Cms_BlockFaq.class.php.

dependencies: Bs_LanguageHandler




Tags:

copyright:  blueshoes.org
author:  andrej arn <at blueshoes dot org>
since:  bs4.3
version:  4.3.$Revision: 1.2 $ $Date: 2003/08/09 15:22:34 $


[ Top ]


Class Variables

$headCollector =

[line 86]

head collector class. if not specified then $GLOBALS['Bs_HeadCollector'] will be used.



Tags:

access:  public

Type:   object


[ Top ]

$language =  'en'

[line 71]

the language to be used.

currently 'en' and 'de' are supported. check the language files. feel free to extend! :-)




Tags:

access:  public

Type:   string


[ Top ]

$layout = array(
      'startTag'        => '<ol>', 
      'endTag'          => '</ol>', 
      'record'          => '<li><b>__QUESTION__</b><br>__ANSWER__</li><br><br>', 
      'recordsPerPage'  => 10, 
      'useQuestionList' => 'false', 
   )

[line 48]

hash with the keys

startTag = '

    ' record = '<li>__QUESTION__
    __ANSWER__</li>

    ' recordsPerPage = 10 useQuestionList = false

    todo: make use of recordsPerPage and useQuestionList




    Tags:

    access:  public

    Type:   array


    [ Top ]

    $todo =

    [line 78]

    see Bs_ToDo.lib.php


    Type:   array


    [ Top ]

    $user =  'user'

    [line 62]

    one of 'user' (default) or 'admin'.

    a normal user cannot see/edit certain fields.




    Tags:

    access:  public

    Type:   string


    [ Top ]



    Class Methods


    constructor Bs_Faq [line 102]

    Bs_Faq Bs_Faq( )

    Constructor.



    [ Top ]

    method doItYourself [line 114]

    void doItYourself( )



    [ Top ]

    method getInterfaceText [line 217]

    string getInterfaceText( string $key, [string $lang = null])

    returns a text string.

    NOTE: COPIED METHOD 1:1 FROM BS_FORM !!!




    Tags:

    see:  _loadInterfaceLanguage(), var $_guiLangHash
    throws:  empty string '' if a key is not defined or a language can in no way be loaded.
    access:  public


    Parameters:

    string   $key  
    string   $lang  

    [ Top ]

    method setObjPersister [line 106]

    void setObjPersister( mixed &$objPersister)



    [ Top ]

    method show [line 134]

    string show( )

    prepares the html code for the overview page that is shown to the visitors.



    Tags:

    return:  (html code)
    access:  public


    [ Top ]


    Documentation generated on Mon, 29 Dec 2003 21:08:59 +0100 by phpDocumentor 1.2.3