Source of file OrmObjectlistOrderby.php

Size: 1,435 Bytes - Last Modified: 2016-05-18T03:08:27+02:00

buildproject/core/module_system/system/OrmObjectlistOrderby.php

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
<?php
/*"******************************************************************************************************
*   (c) 2007-2016 by Kajona, www.kajona.de                                                              *
*       Published under the GNU LGPL v2.1, see /system/licence_lgpl.txt                                 *
*-------------------------------------------------------------------------------------------------------*
*   $Id$                                        *
********************************************************************************************************/

namespace Kajona\System\System;


/**
 * A single order-by statement.
 * Pass them to the objectlist-instance before loading the resultset.
 * Pass values using the syntax "columnmame ORDER". Don't add "ORDER BY" or commas since this
 * will be done by the mapper.
 *
 * @package module_system
 * @author sidler@mulchprod.de
 * @since 4.6
 */
class OrmObjectlistOrderby
{

    private $strOrderBy = "";

    /**
     * @param string $strOrderBy
     */
    function __construct($strOrderBy)
    {
        $this->strOrderBy = " ".$strOrderBy." ";
    }

    /**
     * @param string $strWhere
     *
     * @return void
     */
    public function setStrOrderBy($strWhere)
    {
        $this->strOrderBy = $strWhere;
    }

    /**
     * @return string
     */
    public function getStrOrderBy()
    {
        return $this->strOrderBy;
    }


}