Behavior/CroppableBehavior.php
public function objectMethods()
    {
        $script = '';

        foreach ($this->getColumns() as $image_column => $coordinates_column) {
            $script .= $this->renderTemplate('setCroppableData', array(
                'image_column'       => $this->getTable()->getColumn($image_column)->getPhpName(),
                'coordinates_column' => $this->getTable()->getColumn($coordinates_column)->getPhpName()
            ));

            $script .= $this->renderTemplate('getCroppableData', array(
                'image_column'       => $this->getTable()->getColumn($image_column)->getPhpName(),
                'coordinates_column' => $this->getTable()->getColumn($coordinates_column)->getPhpName()
            ));
        }

        return $script;
    }
public function objectMethods()
    {
        $script = '';

        foreach ($this->getColumns() as $image_column => $coordinates_column) {
            $script .= $this->renderTemplate('setCroppableData', array(
                'image_column'       => $this->getTable()->getColumn($image_column)->getPhpName(),
                'coordinates_column' => $this->getTable()->getColumn($coordinates_column)->getPhpName()
            ));

            $script .= $this->renderTemplate('getCroppableData', array(
                'image_column'       => $this->getTable()->getColumn($image_column)->getPhpName(),
                'coordinates_column' => $this->getTable()->getColumn($coordinates_column)->getPhpName()
            ));
        }

        return $script;
    }
Constructs methods

@return string