XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
DeleteExpression.class.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) NAVER <http://www.navercorp.com> */
3 
13 {
14 
19  var $value;
20 
28  {
29  parent::__construct($column_name);
30  $this->value = $value;
31  }
32 
37  function getExpression()
38  {
39  return "$this->column_name = $this->value";
40  }
41 
42  function getValue()
43  {
44  // TODO Escape value according to column type instead of variable type
45  if(!is_numeric($this->value))
46  {
47  return "'" . $this->value . "'";
48  }
49  return $this->value;
50  }
51 
52  function show()
53  {
54  if(!$this->value)
55  {
56  return false;
57  }
58  return true;
59  }
60 
61 }
62 /* End of file DeleteExpression.class.php */
63 /* Location: ./classes/db/queryparts/expression/DeleteExpression.class.php */
__construct($column_name, $value)