예제 #1
0
	/**
	 * @param array|object $array
	 * @param string       $ignore
	 * @param string       $prefix
	 * @return boolean
	 */
	public function bind( $array, $ignore = '', $prefix = null )
	{
		$bind				=	parent::bind( $array, $ignore, $prefix );

		if ( $bind ) {
			$data			=	array();

			foreach ( $this as $k => $v ) {
				if ( $k == 'parent' ) {
					$k		=	'parent_id';
				}

				$data[$k]	=	$v;
			}

			$bind			=	$this->_category->bind( $data, explode( ' ', $ignore ), false );
		}

		return $bind;
	}