本文整理汇总了PHP中Avatar::getMemberPath方法的典型用法代码示例。如果您正苦于以下问题:PHP Avatar::getMemberPath方法的具体用法?PHP Avatar::getMemberPath怎么用?PHP Avatar::getMemberPath使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Avatar
的用法示例。
在下文中一共展示了Avatar::getMemberPath方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getUploadPath
/**
* {@inheritdoc}
* @return string
*/
protected function getUploadPath()
{
return \Avatar::getMemberPath();
}
示例2: foreach
<?php
/**
* avatar extension for Contao Open Source CMS
*
* @copyright Copyright (c) 2008-2014, terminal42 gmbh
* @author terminal42 gmbh <info@terminal42.ch>
* @license http://opensource.org/licenses/lgpl-3.0.html LGPL
* @link http://github.com/terminal42/contao-avatar
*/
/**
* Extend the tl_member palettes
*/
foreach ($GLOBALS['TL_DCA']['tl_member']['palettes'] as $k => $v) {
$GLOBALS['TL_DCA']['tl_member']['palettes'][$k] = str_replace('language;', 'language;{avatar_legend},avatar,avatar_gravatar;', $v);
}
/**
* Add fields to tl_member
*/
$GLOBALS['TL_DCA']['tl_member']['fields']['avatar'] = array('label' => &$GLOBALS['TL_LANG']['tl_member']['avatar'], 'exclude' => true, 'inputType' => 'avatar', 'eval' => array('uploadPath' => \Avatar::getMemberPath(), 'avatarSize' => \Avatar::getMemberSize(), 'thumbnailSize' => \Config::get('avatar_user_thumb'), 'extensions' => \Config::get('avatar_user_extensions'), 'maxlength' => \Config::get('avatar_user_maxlength'), 'feEditable' => true, 'feViewable' => true, 'feGroup' => 'personal'));
$GLOBALS['TL_DCA']['tl_member']['fields']['avatar_gravatar'] = array('label' => &$GLOBALS['TL_LANG']['tl_member']['avatar_gravatar'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('feEditable' => true, 'feViewable' => true, 'feGroup' => 'personal'), 'sql' => "char(1) NOT NULL default ''");