remind/contacts
最新稳定版本:v2.1.0
Composer 安装命令:
composer require remind/contacts
包简介
REMIND - Contacts
关键字:
README 文档
README
Add custom fields
Use XCLASSing to extend base contact model and add additional fields.
<?php declare(strict_types=1); use Remind\Contacts\Domain\Model\Contact as DefaultContact; use Remind\Extension\Domain\Model\Contact; defined('TYPO3') || die('Access denied.'); (function (): void { $GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][DefaultContact::class] = ['className' => Contact::class]; })();
Add VCard fields
To add fields to the VCard simply use XCLASSing like described before and override the getVCard method.
<?php declare(strict_types=1); namespace Remind\Extension\Domain\Model; use Remind\Contacts\Domain\Model\Contact as BaseContact; use Sabre\VObject\Component\VCard; class Contact extends BaseContact { public function getVCard(): VCard { $result = parent::getVCard(); $result->add( 'TITLE', ['Remind Developer'], ); return $result; } }
统计信息
- 总下载量: 376
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2023-02-08