<?php
/**
 * Sample implementation of a Service Plan Item declaration.
 *
 */
/**
 *
 * Plan_Item_Interface declares the following methods:
 *
 *   public function getName();
 *   public function getHint($locale);
 *   public function getDescription($locale);
 *   public function update(
 *       $subject,
 *       $change,
 *       $subscriptionUuid,
 *       $planItemUuid
 *   );
 *
 * Additional descriptions are available as annotations to method
 * implementations below.
 *
 */
class servicedir_servicefile implements Plan_Item_Interface
{
    private $_logFile = '/tmp/custom-item-connector.log';
    private $_locales = array(
        'en-US' => array(
            'description' => 'External Mail Filtering Service',
            'hint' => 'Filter all incoming mail throug cloud mail filter',
        ),
        'de-DE' => array(
            'description' => 'This is a description in German',
            'hint' => 'And hint is also in German',
        ),
    );
    /**
     * Returns a unique name of an additional service.
     * Plesk uses this name to distinguish services from each other.
     *
     *
     * @return string
     */
    public function getName()
    {
        return 'urn:isv:custom-item-connector:1';
    }
    /**
     * Returns a localized name of the service, that will be
     * displayed in Plesk (in Service Plans > Additional Services).
     *
     *
<…
Knowledge Base
Implementation of Plan_Item_Interface
									Related Posts								
				
									Knowledge Base								
				Hosting Wiki