示例#1
0
<?php

Wordless::require_once_dir(Wordless::join_paths(dirname(dirname(dirname(__FILE__))), "vendor/lorem"));
Wordless::require_once_dir(Wordless::join_paths(dirname(dirname(dirname(__FILE__))), "vendor/lorem/PlaceholderImage"));
/**
 * Provides methods for use of placeholders (images or text).
 * 
 * @copyright welaika (c) 2011-2014 - MIT License
 * 
 * @ingroup helperclass
 */
class FakerHelper
{
    /**
     * Generate a placeholder image.
     * 
     * Using the specified sevice provide a placeholder image.
     * 
     * Placeholder Services available are described here @ref placeholders.
     *
     * To implement your service please check the @ref placeholderservices.
     * 
     * @param int $width
     *   The width of the placeholder image.
     * @param int $height
     *   The height of the placeholder image.
     * @param array $options
     *   (optional) An option array to be passed to the PHP Class handling the 
     *   placeholder service. See the placeholder service docs for details.
     * 
     * @return @e string
示例#2
0
<?php

require_once Wordless::join_paths(dirname(dirname(dirname(__FILE__))), 'vendor/lorem/LoremIpsum.class.php');
Wordless::require_once_dir(Wordless::join_paths(dirname(__FILE__), "placeholder_images"));
/**
 * This module provides methods for use of placeholders (images or text).
 * 
 * @copyright welaika &copy; 2011 - MIT License
 * 
 * @ingroup helperclass
 */
class FakerHelper
{
    /**
     * Generate a placeholder image.
     * 
     * Using the specified sevice provide a placeholder image.
     * 
     * Placeholder Services available are described here @ref placeholders.
     *
     * To implement your service please check the @ref placeholderservices.
     * 
     * @param int $width
     *   The width of the placeholder image.
     * @param int $height
     *   The height of the placeholder image.
     * @param array $options
     *   (optional) An option array to be passed to the PHP Class handling the 
     *   placeholder service. See the placeholder service docs for details.
     * 
     * @return @e string
示例#3
0
<?php

require_once Wordless::join_paths(dirname(dirname(__FILE__)), 'vendor/phamlp/haml/HamlParser.php');
Wordless::require_once_dir(Wordless::join_paths(dirname(__FILE__), "helpers"));