Свойство | Type | Description | |
---|---|---|---|
$captureLock | boolean | ||
$ckeditorRendered | boolean | ||
$collectedHtml | array | ||
$container | Symfony\Component\DependencyInjection\ContainerInterface | Container |
Méthode | Description | |
---|---|---|
addToBottom ( ) | ||
addToBottomEnd ( ) | ||
base64Encode ( $value ) : string | ||
camelize ( $str, boolean $firstToCapital = false ) : mixed | Camelize a string | |
ckeditorIsRendered ( ) : boolean | Verify if the ckeditor has already been rendered on a page or not | |
cropMiddle ( $text, $maxLength, string $delimiter = '...' ) : string | ||
excerpt ( Twig_Environment $env, string $text, string $phrase, integer $radius = 100, string $ellipsis = '...' ) : string | Extracts an excerpt from the text surrounding the phrase with a number of characters on each side determined by radius. | |
getBundleName ( $class ) : string | ||
getBundleShortName ( $class ) : mixed | ||
getContentCss ( null $configName = null ) : boolean | Return the path to the content css for the default or named ckeditor config contentsCss | |
getContentTypeOptions ( ) : mixed | ||
getCurrentAdminLocale ( Sonata\AdminBundle\Admin\AdminInterface $admin ) : mixed | string | returns the locale of the current admin user | |
getCurrentTemplate ( ) : array | mixed | ||
getFieldValue ( $object, $fieldName, null $method = null ) : mixed | Fetch the variables from the given content type object | |
getFileIcon ( $filename ) : string | Guess which fontawesome icon to use | |
getFilters ( ) | ||
getFormFieldZone ( Symfony\Component\Form\FormView $formView ) : mixed | ||
getFunctions ( ) : array | Returns a list of functions to add to the existing list. | |
getHumanReadableSize ( $size, null $unit = null, integer $decemals = 2 ) : string | ||
getInitCmsTemplateZones ( ) : mixed | ||
getInitcmsAdminIconPath ( Sonata\AdminBundle\Admin\AdminInterface $admin, string $size = 'small', boolean $active = false ) : string | Guess which icon should represent an entity admin | |
getMediaById ( $id ) : mixed | Return a media object by its' id | |
getName ( ) : string | Returns the name of the extension. | |
getPageUrl ( Networking\InitCmsBundle\Model\PageInterface $page ) : mixed | ||
getParameter ( string $name ) : mixed | Get parameters from the service container | |
getService ( string $id ) : object | Gets a service. | |
getShortName ( $class ) : string | ||
getSubFormsByZone ( $formChildren, $zone ) : array | Gets a list of forms sorted to a particular zone | |
getTokenParsers ( ) : array | Returns the token parser instance to add to the existing list. | |
getZoneNames ( ) : array | ||
highlight ( string $text, string $phrase, string $format = '<span class="highlight">\1</span>', boolean $html = false, string $regex = "|%s|iu" ) : mixed | Highlights a given phrase in a text. You can specify any expression in highlighter that may include the \1 expression to include the $phrase found. | |
isAdminActive ( Sonata\AdminBundle\Admin\AdminInterface $admin, string $adminCode = '' ) : boolean | ||
isAdminGroupActive ( array $group, string $adminCode = '' ) : boolean | ||
networking_init_cms_resource_bundle ( $class ) : string | ||
render ( ) : string | ||
renderAdminSubNav ( Sonata\AdminBundle\Admin\AdminInterface $admin, string $adminCode = '' ) : boolean | Knp\Menu\ItemInterface | ||
renderContentTypeName ( Networking\InitCmsBundle\Model\LayoutBlockInterface $layoutBlock ) : mixed | ||
renderInitCmsBlock ( $template, Networking\InitCmsBundle\Model\LayoutBlockInterface $layoutBlock, array $params = [] ) : string | Returns an HTML block for output in the frontend | |
renderInitcmsAdminBlock ( Networking\InitCmsBundle\Model\LayoutBlockInterface $layoutBlock ) : boolean | Returns an HTML block for output in the admin area | |
renderInitcmsFieldAsString ( $template, $object, Symfony\Component\Form\FormView $formView, null $translationDomain = null ) : mixed | ||
returnConfigValue ( $name ) | Return the config Value | |
setContainer ( Symfony\Component\DependencyInjection\ContainerInterface $container = null ) | Sets the Container. | |
slugify ( $text ) : mixed | string | Modifies a string to remove all non ASCII characters and spaces. | |
truncate ( Twig_Environment $env, string $text, integer $length = 100, string $ellipsis = '...', boolean $exact = true, boolean $html = false ) : string | Cuts a string to the length of $length and replaces the last characters with the ellipsis if the text is longer than length. |
Méthode | Description | |
---|---|---|
addToCollectedHtml ( $data ) | ||
getDoctrine ( ) : Doctrine\Bundle\DoctrineBundle\Registry | Shortcut to return the Doctrine Registry service. | |
getZonesByTemplate ( $template ) : mixed | ||
jsString ( $s ) : string |
Méthode | Description | |
---|---|---|
getCurrentLocale ( ) : mixed |
public ckeditorIsRendered ( ) : boolean | ||
Résultat | boolean |
public cropMiddle ( $text, $maxLength, string $delimiter = '...' ) : string | ||
$text | ||
$maxLength | ||
$delimiter | string | |
Résultat | string |
public excerpt ( Twig_Environment $env, string $text, string $phrase, integer $radius = 100, string $ellipsis = '...' ) : string | ||
$env | Twig_Environment | |
$text | string | String to search the phrase in |
$phrase | string | Phrase that will be searched for |
$radius | integer | The amount of characters that will be returned on each side of the founded phrase |
$ellipsis | string | Ending that will be appended |
Résultat | string |
public getBundleShortName ( $class ) : mixed | ||
$class | ||
Résultat | mixed |
public getContentCss ( null $configName = null ) : boolean | ||
$configName | null | |
Résultat | boolean |
public getCurrentAdminLocale ( Sonata\AdminBundle\Admin\AdminInterface $admin ) : mixed | string | ||
$admin | Sonata\AdminBundle\Admin\AdminInterface | |
Résultat | mixed | string |
public getCurrentTemplate ( ) : array | mixed | ||
Résultat | array | mixed |
protected getDoctrine ( ) : Doctrine\Bundle\DoctrineBundle\Registry | ||
Résultat | Doctrine\Bundle\DoctrineBundle\Registry |
public getFieldValue ( $object, $fieldName, null $method = null ) : mixed | ||
$object | ||
$fieldName | ||
$method | null | |
Résultat | mixed |
public getFileIcon ( $filename ) : string | ||
$filename | ||
Résultat | string |
public getFormFieldZone ( Symfony\Component\Form\FormView $formView ) : mixed | ||
$formView | Symfony\Component\Form\FormView | |
Résultat | mixed |
public getFunctions ( ) : array | ||
Résultat | array | An array of functions |
public getMediaById ( $id ) : mixed | ||
$id | ||
Résultat | mixed |
public getPageUrl ( Networking\InitCmsBundle\Model\PageInterface $page ) : mixed | ||
$page | Networking\InitCmsBundle\Model\PageInterface | |
Résultat | mixed |
public getParameter ( string $name ) : mixed | ||
$name | string | |
Résultat | mixed |
public getService ( string $id ) : object | ||
$id | string | The service identifier |
Résultat | object | The associated service |
public getSubFormsByZone ( $formChildren, $zone ) : array | ||
$formChildren | ||
$zone | ||
Résultat | array |
public getTokenParsers ( ) : array | ||
Résultat | array | An array of Twig_TokenParser instances |
protected getZonesByTemplate ( $template ) : mixed | ||
$template | ||
Résultat | mixed |
public highlight ( string $text, string $phrase, string $format = '<span class="highlight">\1</span>', boolean $html = false, string $regex = "|%s|iu" ) : mixed | ||
$text | string | Text to search the phrase in |
$phrase | string | The phrase that will be searched |
$format | string | The piece of html with that the phrase will be highlighted |
$html | boolean | If true, will ignore any HTML tags, ensuring that only the correct text is highlighted |
$regex | string | a custom regex rule that is used to match words, default is '|$tag|iu' |
Résultat | mixed |
public isAdminActive ( Sonata\AdminBundle\Admin\AdminInterface $admin, string $adminCode = '' ) : boolean | ||
$admin | Sonata\AdminBundle\Admin\AdminInterface | |
$adminCode | string | |
Résultat | boolean |
public networking_init_cms_resource_bundle ( $class ) : string | ||
$class | ||
Résultat | string |
public renderContentTypeName ( Networking\InitCmsBundle\Model\LayoutBlockInterface $layoutBlock ) : mixed | ||
$layoutBlock | Networking\InitCmsBundle\Model\LayoutBlockInterface | |
Résultat | mixed |
public renderInitCmsBlock ( $template, Networking\InitCmsBundle\Model\LayoutBlockInterface $layoutBlock, array $params = [] ) : string | ||
$template | ||
$layoutBlock | Networking\InitCmsBundle\Model\LayoutBlockInterface | |
$params | array | |
Résultat | string |
public renderInitcmsAdminBlock ( Networking\InitCmsBundle\Model\LayoutBlockInterface $layoutBlock ) : boolean | ||
$layoutBlock | Networking\InitCmsBundle\Model\LayoutBlockInterface | |
Résultat | boolean |
public renderInitcmsFieldAsString ( $template, $object, Symfony\Component\Form\FormView $formView, null $translationDomain = null ) : mixed | ||
$template | ||
$object | ||
$formView | Symfony\Component\Form\FormView | |
$translationDomain | null | |
Résultat | mixed |
public setContainer ( Symfony\Component\DependencyInjection\ContainerInterface $container = null ) | ||
$container | Symfony\Component\DependencyInjection\ContainerInterface | A ContainerInterface instance or null |
public static truncate ( Twig_Environment $env, string $text, integer $length = 100, string $ellipsis = '...', boolean $exact = true, boolean $html = false ) : string | ||
$env | Twig_Environment | |
$text | string | String to truncate. |
$length | integer | Length of returned string, including ellipsis. |
$ellipsis | string | Will be used as Ending and appended to the trimmed string (`ending` is deprecated) |
$exact | boolean | If false, $text will not be cut mid-word |
$html | boolean | If true, HTML tags would be handled correctly |
Résultat | string |