ultimix
page_meta.php
Go to the documentation of this file.
1 <?php
2 
3  /*
4  * This source code is a part of the Ultimix Project.
5  * It is distributed under BSD license. All other third side source code (like tinyMCE) is distributed under
6  * it's own license wich could be found from the corresponding files or sources.
7  * This source code is provided "as is" without any warranties or garanties.
8  *
9  * Have a nice day!
10  *
11  * @url http://ultimix.sorceforge.net
12  *
13  * @author Alexey "gdever" Dodonov
14  */
15 
27 
38  var $PageTitle = '';
39 
50  var $PageKeywords = '';
51 
62  var $PageDescription = '';
63 
74  var $Cache = false;
75  var $CachedMultyFS = false;
76  var $PageComposer = false;
77  var $PageMarkupUtilities = false;
78  var $Settings = false;
79  var $String = false;
80  var $Tags = false;
81  var $Trace = false;
82 
93  function __construct()
94  {
95  try
96  {
97  $this->Cache = get_package( 'cache' , 'last' , __FILE__ );
98  $this->CachedMultyFS = get_package( 'cached_multy_fs' , 'last' , __FILE__ );
99  $this->PageMarkupUtilities = get_package(
100  'page::page_markup::page_markup_utilities' , 'last' , __FILE__
101  );
102  $this->Settings = get_package_object( 'settings::settings' , 'last' , __FILE__ );
103  $this->String = get_package( 'string' , 'last' , __FILE__ );
104  $this->Tags = get_package( 'string::tags' , 'last' , __FILE__ );
105  $this->Trace = get_package( 'trace' , 'last' , __FILE__ );
106  }
107  catch( Exception $e )
108  {
109  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
110  }
111  }
112 
131  function set_page_title( $NewTitle )
132  {
133  try
134  {
135  $this->PageTitle = $NewTitle;
136  }
137  catch( Exception $e )
138  {
139  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
140  }
141  }
142 
161  function add_page_keywords( $NewKeywords )
162  {
163  try
164  {
165  if( strlen( $this->PageKeywords ) )
166  {
167  $this->PageKeywords .= ' '.$NewKeywords;
168  }
169  else
170  {
171  $this->PageKeywords = $NewKeywords;
172  }
173  }
174  catch( Exception $e )
175  {
176  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
177  }
178  }
179 
198  function add_page_description( $NewDescription )
199  {
200  try
201  {
202  if( strlen( $this->PageDescription ) )
203  {
204  $this->PageDescription .= ' '.$NewDescription;
205  }
206  else
207  {
208  $this->PageDescription = $NewDescription;
209  }
210  }
211  catch( Exception $e )
212  {
213  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
214  }
215  }
216 
240  {
241  try
242  {
243  return( $this->PageTitle );
244  }
245  catch( Exception $e )
246  {
247  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
248  }
249  }
250 
274  {
275  try
276  {
277  return( $this->PageKeywords );
278  }
279  catch( Exception $e )
280  {
281  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
282  }
283  }
284 
308  {
309  try
310  {
311  return( $this->PageDescription );
312  }
313  catch( Exception $e )
314  {
315  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
316  }
317  }
318  }
319 
320 ?>