Class Socialveo\Core\helpers\PostsHelper

InheritanceSocialveo\Core\helpers\PostsHelper » Socialveo\Core\helpers\MediaUploaderHelper
Uses TraitsSocialveo\Core\Translatable

Class PostsHelper

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$target_type string Socialveo\Core\helpers\PostsHelper

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$isHtml boolean Socialveo\Core\helpers\PostsHelper

Property Details

$isHtml protected static property
protected static boolean $isHtml false
$target_type public static property
public static string $target_type 'post'

Method Details

create() public static method

Post creation

public static Socialveo\Core\models\Post create ( Socialveo\Core\models\Network $network null, $data = [], $scenario null, $language 'en-US', $callable null )
$network Socialveo\Core\models\Network

[optional]

$data array|null

[optional]

$scenario mixed

[optional]

$language string

Embed language [optional]

$callable callable

[optional] Optional callable to add custom fields

throws Exception
groupDate() public static method

Group posts by date

public static array groupDate ( $resultInterface, $user null )
$resultInterface Phalcon\Mvc\Model\ResultsetInterface
$user Socialveo\Core\models\User|null

[optional] User for skip marked as spam content

uniqueNewLines() public static method

Remove extra new lines

public static string uniqueNewLines ( $str )
$str string
update() public static method

Post update

public static Socialveo\Core\models\Post update ( $callable null )
$callable callable
throws Exception