| Current Path : /proc/thread-self/root/proc/thread-self/root/proc/self/root/tmp/ |
| Current File : //proc/thread-self/root/proc/thread-self/root/proc/self/root/tmp/php16p7b3 |
<?php
namespace Nextend\Framework\Content;
abstract class AbstractPlatformContent {
/**
* @param $keyword
*
* @return array links
* $links[] = array(
* 'title' => '',
* 'link' => '',
* 'info' => ''
* );
*/
abstract public function searchLink($keyword);
/**
* @param $keyword
*
* @return array links
* $links[] = array(
* 'title' => '',
* 'description' => '',
* 'image' => '',
* 'link' => '',
* 'info' => ''
* );
*/
abstract public function searchContent($keyword);
}<?php
namespace Nextend\Framework\Content;
use Nextend\Framework\Content\Joomla\JoomlaContent;
use Nextend\Framework\Content\WordPress\WordPressContent;
class Content {
/**
* @var AbstractPlatformContent
*/
private static $platformContent;
public function __construct() {
self::$platformContent = new JoomlaContent();
}
public static function searchLink($keyword) {
return self::$platformContent->searchLink($keyword);
}
public static function searchContent($keyword) {
return self::$platformContent->searchContent($keyword);
}
}
new Content();