is_true() public static method

public static is_true ( mixed $value ) : boolean
$value mixed
return boolean
Beispiel #1
0
 /**
  * @api
  * @example
  * ```twig
  * {% if comment.approved %}
  * 	Your comment is good
  * {% else %}
  * 	Do you kiss your mother with that mouth?
  * {% endif %}
  * ```
  * @return boolean
  */
 public function approved()
 {
     return Helper::is_true($this->comment_approved);
 }