StormExamples\One\Entities\Blog::GetName PHP Method

GetName() public method

public GetName ( )
    public function GetName()
    {
        return $this->Name;
    }

Usage Example

Esempio n. 1
0
 public function UpdateBlog(Entities\Blog $Blog)
 {
     $Blog->Description = md5($Blog->GetName());
     $Blog->SetName(substr($Blog->GetName() . (strpos($Blog->Description, 'Test') !== false ? 'Foobar' . (string) $Blog->CreatedDate : $Blog->GetName() . 'Hi'), 0, 50));
     $Blog->CreatedDate = (new \DateTime())->add((new \DateTime())->diff($Blog->CreatedDate, true));
 }