wp/wp-includes/SimplePie/Caption.php
changeset 16 a86126ab1dd4
parent 0 d970ebf37754
equal deleted inserted replaced
15:3d4e9c994f10 16:a86126ab1dd4
     3  * SimplePie
     3  * SimplePie
     4  *
     4  *
     5  * A PHP-Based RSS and Atom Feed Framework.
     5  * A PHP-Based RSS and Atom Feed Framework.
     6  * Takes the hard work out of managing a complete RSS/Atom solution.
     6  * Takes the hard work out of managing a complete RSS/Atom solution.
     7  *
     7  *
     8  * Copyright (c) 2004-2012, Ryan Parman, Geoffrey Sneddon, Ryan McCue, and contributors
     8  * Copyright (c) 2004-2016, Ryan Parman, Sam Sneddon, Ryan McCue, and contributors
     9  * All rights reserved.
     9  * All rights reserved.
    10  *
    10  *
    11  * Redistribution and use in source and binary forms, with or without modification, are
    11  * Redistribution and use in source and binary forms, with or without modification, are
    12  * permitted provided that the following conditions are met:
    12  * permitted provided that the following conditions are met:
    13  *
    13  *
    31  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
    31  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
    32  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    32  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    33  * POSSIBILITY OF SUCH DAMAGE.
    33  * POSSIBILITY OF SUCH DAMAGE.
    34  *
    34  *
    35  * @package SimplePie
    35  * @package SimplePie
    36  * @version 1.3.1
    36  * @copyright 2004-2016 Ryan Parman, Sam Sneddon, Ryan McCue
    37  * @copyright 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue
       
    38  * @author Ryan Parman
    37  * @author Ryan Parman
    39  * @author Geoffrey Sneddon
    38  * @author Sam Sneddon
    40  * @author Ryan McCue
    39  * @author Ryan McCue
    41  * @link http://simplepie.org/ SimplePie
    40  * @link http://simplepie.org/ SimplePie
    42  * @license http://www.opensource.org/licenses/bsd-license.php BSD License
    41  * @license http://www.opensource.org/licenses/bsd-license.php BSD License
    43  */
    42  */
    44 
    43 
   130 	{
   129 	{
   131 		if ($this->endTime !== null)
   130 		if ($this->endTime !== null)
   132 		{
   131 		{
   133 			return $this->endTime;
   132 			return $this->endTime;
   134 		}
   133 		}
   135 		else
   134 
   136 		{
   135 		return null;
   137 			return null;
       
   138 		}
       
   139 	}
   136 	}
   140 
   137 
   141 	/**
   138 	/**
   142 	 * Get the language
   139 	 * Get the language
   143 	 *
   140 	 *
   148 	{
   145 	{
   149 		if ($this->lang !== null)
   146 		if ($this->lang !== null)
   150 		{
   147 		{
   151 			return $this->lang;
   148 			return $this->lang;
   152 		}
   149 		}
   153 		else
   150 
   154 		{
   151 		return null;
   155 			return null;
       
   156 		}
       
   157 	}
   152 	}
   158 
   153 
   159 	/**
   154 	/**
   160 	 * Get the start time
   155 	 * Get the start time
   161 	 *
   156 	 *
   165 	{
   160 	{
   166 		if ($this->startTime !== null)
   161 		if ($this->startTime !== null)
   167 		{
   162 		{
   168 			return $this->startTime;
   163 			return $this->startTime;
   169 		}
   164 		}
   170 		else
   165 
   171 		{
   166 		return null;
   172 			return null;
       
   173 		}
       
   174 	}
   167 	}
   175 
   168 
   176 	/**
   169 	/**
   177 	 * Get the text of the caption
   170 	 * Get the text of the caption
   178 	 *
   171 	 *
   182 	{
   175 	{
   183 		if ($this->text !== null)
   176 		if ($this->text !== null)
   184 		{
   177 		{
   185 			return $this->text;
   178 			return $this->text;
   186 		}
   179 		}
   187 		else
   180 
   188 		{
   181 		return null;
   189 			return null;
       
   190 		}
       
   191 	}
   182 	}
   192 
   183 
   193 	/**
   184 	/**
   194 	 * Get the content type (not MIME type)
   185 	 * Get the content type (not MIME type)
   195 	 *
   186 	 *
   199 	{
   190 	{
   200 		if ($this->type !== null)
   191 		if ($this->type !== null)
   201 		{
   192 		{
   202 			return $this->type;
   193 			return $this->type;
   203 		}
   194 		}
   204 		else
   195 
   205 		{
   196 		return null;
   206 			return null;
       
   207 		}
       
   208 	}
   197 	}
   209 }
   198 }
   210