Example #1
0
 /**
  * Returns a set of properties used by URL::get to create URLs
  * @return array Properties of this post used to build a URL
  */
 public function get_url_args()
 {
     if (!$this->url_args) {
         $arr = array('content_type_name' => Post::type_name($this->content_type));
         $author = URL::extract_args($this->author, 'author_');
         $info = URL::extract_args($this->info, 'info_');
         $url_args = array_merge($author, $info, $arr, $this->pubdate->getdate());
         $this->url_args = Plugins::filter('post_url_args', $url_args, $this);
     }
     return array_merge($this->url_args, parent::get_url_args());
 }