Phundament App Class Reference
  • Package
  • Class
  • Tree

Packages

  • bootstrap
    • widgets
      • input
  • Image
  • None
  • p3admin
  • p3extensions
    • behaviors
    • commands
    • components
    • helpers
    • widgets
  • p3media
    • actions
    • controllers
    • models
  • p3pages
    • models
  • p3widgets
    • components
    • models
  • PHP
  • system
    • db
      • ar
    • gii
    • web
      • auth
      • helpers
      • widgets
  • yiiext
    • widgets
      • fancybox
      • lipsum
  • zii
    • widgets
      • grid

Classes

  • ELipsum

Class ELipsum

ELipsum widget

It generate simply dummy text.

Usage as widget:

$this->widget('ext.yiiext.widgets.ELipsum',array(
    'paragraphs'=>2,
    'words'=>50,
));

Usage static methods:

Yii::import('ext.yiiext.widgets.lipsum.ELipsum');
echo ELipsum::paragraphs(2);
echo ELipsum::words(100);

Usage in models:

public function rules()
{
    Yii::import('ext.yiiext.widgets.lipsum.ELipsum');
    return array(
        array('content','default','value'=>ELipsum::paragraphs(),'on'=>'insert'),
    );
}
CComponent
Extended by CBaseController
Extended by CWidget
Extended by ELipsum
Package: yiiext\widgets\lipsum
License: http://www.opensource.org/licenses/bsd-license.php
Author: Veaceslav Medvedev <slavcopost@gmail.com>
Version: 0.1
Located at yiiext/lipsum-widget/ELipsum.php

Methods summary

public
# run( )

Run widget

Run widget

Overrides

CWidget::run
public static string
# paragraphs( integer $count = 0, integer $words = 0, boolean $loremIpsumFirst = true, string $wrapperTag = 'p' )

Generate paragraphs.

Generate paragraphs.

Parameters

$count
integer
$count the number of paragraphs.
$words
integer
$words the number of words per paragraph.
$loremIpsumFirst
boolean
$loremIpsumFirst which start with "Lorem ipsum dolor sit amet".
$wrapperTag
string
$wrapperTag the paragraph's wrapper tag.

Returns

string
public static string
# words( mixed $count = 0, mixed $loremIpsumFirst = true )

Generate words.

Generate words.

Parameters

$count
mixed
$count the number of words.
$loremIpsumFirst
mixed
$loremIpsumFirst which start with "Lorem ipsum dolor sit amet".

Returns

string

Methods inherited from CWidget

__construct(), actions(), getController(), getId(), getOwner(), getViewFile(), getViewPath(), init(), render(), setId()

Methods inherited from CBaseController

beginCache(), beginClip(), beginContent(), beginWidget(), createWidget(), endCache(), endClip(), endContent(), endWidget(), renderFile(), renderInternal(), widget()

Methods inherited from CComponent

__call(), __get(), __isset(), __set(), __unset(), asa(), attachBehavior(), attachBehaviors(), attachEventHandler(), canGetProperty(), canSetProperty(), detachBehavior(), detachBehaviors(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), getEventHandlers(), hasEvent(), hasEventHandler(), hasProperty(), raiseEvent()

Magic methods summary

Properties summary

public integer $paragraphs
#

the number of paragraphs. Set 0 (zero) to get random from 1 to 10 paragraphs. Defaults to 0.

the number of paragraphs. Set 0 (zero) to get random from 1 to 10 paragraphs. Defaults to 0.

public integer $words
#

the number of words per paragraph. Set 0 (zero) to get random from 5 to 100 words. Defaults to 0.

the number of words per paragraph. Set 0 (zero) to get random from 5 to 100 words. Defaults to 0.

public boolean $loremIpsumFirst
#

which start with "Lorem ipsum dolor sit amet". Defaults to true.

which start with "Lorem ipsum dolor sit amet". Defaults to true.

public string $paragraphTag
#

the paragraph's wrapper tag. Defaults to 'p'.

the paragraph's wrapper tag. Defaults to 'p'.

Properties inherited from CWidget

$actionPrefix, $skin

Magic properties inherited from CWidget

$controller, $id, $owner, $viewPath

Phundament App Class Reference API documentation generated by ApiGen 2.8.0